Define SMTP configuration in the secrets file

Since SMTP passwords should not be in a file under version control, and
they're usually configured in the production.rb file (which is under
version control), the natural place to configure it is the secrets.yml
file.

Until now we were using the capistrano shared folder, but that's a bit
inconvenient since changes we've done to the production.rb file (like
changing eager_load_paths when we upgraded to Rails 5) won't take effect
after a deployment.
This commit is contained in:
Javi Martín
2019-10-13 01:11:20 +02:00
parent 4b41ccf75d
commit bc9471b49e
5 changed files with 34 additions and 34 deletions

View File

@@ -21,7 +21,7 @@ set :log_level, :info
set :pty, true
set :use_sudo, false
set :linked_files, %w[config/database.yml config/secrets.yml config/environments/production.rb]
set :linked_files, %w[config/database.yml config/secrets.yml]
set :linked_dirs, %w[log tmp public/system public/assets public/ckeditor_assets]
set :keep_releases, 5