I’m currently using circle yml to define environment variables like so:
machine: environment: RAILS_ENV=test
This works great, but for one of my three containers, I want to over-ride this to RAILS_ENV=production.
In the script I’m using for each container I’ve tried to override using:
export RAILS_ENV=production RAILS_ENV=production bundle exec rails s
Using both of these did not seem to work. The rails server is still in test mode. Any ideas how I can resolve this?