puma-dev icon indicating copy to clipboard operation
puma-dev copied to clipboard

Ruby version mismatch between puma-dev and the Rails app

Open MtnBiker opened this issue 1 year ago • 1 comments

Trying this out as I'd like to be able to run more than one app at a time.

For some apps I get this error in the browser:

unexpected exit: from ~/.gem/ruby/3.1.0/bin/puma:25:in

'`

I tried puma-dev with three apps one works. That app is ruby-3.1.0. The two apps that don't are ruby-3.1.0.

From the log:

Unable to load application: Bundler::RubyVersionMismatch: Your Ruby version is 3.1.0, but your Gemfile specified 3.1.2

macOS 12.6. Installed puma-dev today following https://world.hey.com/lewis/run-multiple-rails-apps-with-puma-dev-67b1c10f.

Is there a workaround for this? Or is it a bug? Or is my setup wrong?

MtnBiker avatar Oct 07 '22 03:10 MtnBiker

Hey @MtnBiker I've not run into this issue myself but it's worth checking that that gem "puma" is in each application's Gemfile, and after you've added it that you've run bundle install.

lewispb avatar Oct 13 '22 15:10 lewispb