While running puma-dev
I got the following error when trying to visit my Rails app:
unexpected exit:
from /not/the/correct/ruby/path/ruby_executable_hooks:24:in `<main>'
How do you tell puma-dev
to use the correct path for loading gems with RVM?
I figured this out and wanted to share it with others who may be looking.
puma-dev
uses the.powenv
file to load the correct RVM configuation. You'll want to put this file in the root of your Rails app: