Add Rails environment to Rails Pods
Summary
As noted in !1584 (comment 429145286) the Rails environment should be added to the Rails console invocation command to avoid oddities when running the Rails console. Instead of relying on the the user to set the environment on the command line this should be added to the Rails Pods as an environmental variable.
Details
RAILS_ENV=production
should be added to the following Pods:
- Task Runner
- Webservice
- Webservice dependencies init container
- Sidekiq
Once the environmental variable has been added, the reference gitlab-rails console -e production
in (Charts) documentation can be changed to just gitlab-rails console
.
Edited by Gerard Hickey