I can see that only ENV['PORT'] is set to 5000. All the other ENV vars are nil.
Any ideas what could be the issue here?
If I start Rails via rails s, the ENV vars are all set.
PS The ENV vars are set in the rest of the app, even when I start the app through foreman, it's only that in config/puma.rb the ENV vars are not set. 🤷♂️
Hi!
I'm using
foreman
gem to start my Rails app like this:foreman start -f Procfile.dev
In
Procfile.dev
the line that starts Rails server looks like this:backend: bundle exec puma -C config/puma.rb
And
config/puma.rb
looks like this:If I add some
puts
in there:I can see that only
ENV['PORT']
is set to5000
. All the other ENV vars arenil
.Any ideas what could be the issue here?
If I start Rails via
rails s
, the ENV vars are all set.PS The ENV vars are set in the rest of the app, even when I start the app through foreman, it's only that in
config/puma.rb
the ENV vars are not set. 🤷♂️