Use of figaro gem (or something like dotenv) in all environments.
The Figaro config/application.yml
file with all the secrets will be git-ignored. So on every deployment server I had to manually add the file shared/config/application.yml
and then linked automatically on each deployment to the current version of the app by adding in config/deploy.rb
:
set :linked_files, %w{config/application.yml}
For development config/application.yml
is something like the following: