rewrite configs on each deploy
This commit is contained in:
parent
52a2984cac
commit
5d2a79afeb
|
@ -33,8 +33,8 @@ set :keep_releases, 3
|
|||
task :symlink_config_files do
|
||||
run "mkdir -p #{deploy_to}/#{shared_dir}/config"
|
||||
|
||||
run "yes n | cp -i #{release_path}/config/database.yml.sample #{deploy_to}/#{shared_dir}/config/database.yml"
|
||||
run "yes n | cp -i #{release_path}/config/application.yml.sample #{deploy_to}/#{shared_dir}/config/application.yml"
|
||||
run "yes y | cp -i #{release_path}/config/database.yml.sample #{deploy_to}/#{shared_dir}/config/database.yml"
|
||||
run "yes y | cp -i #{release_path}/config/application.yml.sample #{deploy_to}/#{shared_dir}/config/application.yml"
|
||||
|
||||
|
||||
run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml #{release_path}/config/database.yml"
|
||||
|
|
Loading…
Reference in New Issue