Skip to content

secrets.yml in shared_paths by default #298

@ralfebert

Description

@ralfebert

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions