adds capistrano task to upload secrets.yml

This commit is contained in:
rgarcia
2015-09-01 20:12:44 +02:00
parent 362c9b9e33
commit a82eac8e16

View File

@@ -0,0 +1,12 @@
namespace :deploy do
desc "compiles assets locally then rsyncs"
task :upload_secrets do
on roles(:app) do |role|
run_locally do
execute"rsync -av ./config/secrets.yml #{role.user}@#{role.hostname}:#{shared_path}/config/secrets.yml;"
end
"chmod -R 755 #{shared_path}/config/secrets.yml"
execute "ln -nfs #{shared_path}/config/secrets.yml #{current_path}/config/secrets.yml"
end
end
end