Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secrets.yml in shared_paths by default #298

Closed
ralfebert opened this issue Apr 2, 2015 · 1 comment
Closed

secrets.yml in shared_paths by default #298

ralfebert opened this issue Apr 2, 2015 · 1 comment

Comments

@ralfebert
Copy link
Contributor

For Rails >4.1, 'mina init' would be more consistent if the generated deploy.rb would treat the 'secrets.yml' file in the same way as the 'config/database.yml' as it's not recommended to configure the production settings in the repository, like:

set :shared_paths, ['config/database.yml', 'config/secrets.yml', 'log']

task :setup => :environment do
  # ...
  queue! %[touch "#{deploy_to}/#{shared_path}/config/database.yml"]
  queue! %[touch "#{deploy_to}/#{shared_path}/config/secrets.yml"]
  queue  %[echo "-----> Be sure to edit '#{deploy_to}/#{shared_path}/config/database.yml and secrets.yml'."]
end
@d4be4st
Copy link
Member

d4be4st commented Jul 5, 2015

thx for this, will be added to next release

@d4be4st d4be4st closed this as completed Jul 5, 2015
d4be4st added a commit that referenced this issue Jul 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants