I run two applications on Heroku, one of which is myapp-production, and the other is myapp production.
For some reason, however, the middleware uses the production environment configuration, rather than the intermediate configuration that I defined in staging.rb.
How I installed the middleware application was launched
heroku create
and then
heroku config:add RACK_ENV=staging --app myapp-staging
However, myapp-staging still uses the production configuration. Any ideas why and how to solve them?
source share