Answer the question
In order to leave comments, you need to log in
How to set separate environment variables for each Rails application (rvm, passenger, nginx)?
In one of the updates to the Rails 4.1.x branch, I noticed that some variables are now taken from the environment. For example in config/secrets.yml :
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Answer the question
In order to leave comments, you need to log in
on the Internet they write that there is such a gem 'figaro', and you can specify environment variables in its config.
And anyway, Google gives a lot of interesting things
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question