I just created my first Heroku pipeline and deployed a Rails app to its development
stage.
My question is, do these pipeline stages (like development
and production
) correspond to the environments in Rails? For example, does my app deployed to the development
stage get its settings from config/development.rb
? Or do all apps deployed in Heroku read from production.rb
regardless of pipeline stage?
I know it seems like a basic question but I couldn't find info in the docs or here. Thanks in advance.
If you go to settings -> reveal config vars, there should be an env variable called RAILS_ENV, which you can set to the environment you want. By default it is production.