summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorjomo <github@jomo.tv>2014-06-24 23:58:03 +0200
committerjomo <github@jomo.tv>2014-06-24 23:58:03 +0200
commit1b23de09ef142b7239fbf6e99bd3e6a033904b07 (patch)
treed64387898c27d0a4bc341d83ba2527b038db9218 /config
parente24e7b3460e103dff0d1a4ef4f1378432bb9a304 (diff)
need to use sudo for config
Diffstat (limited to 'config')
-rw-r--r--config/deploy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index e2f68f4..a228e16 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -27,8 +27,8 @@ namespace :deploy do
end
task :setup_config, roles: :app do
- "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
- "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
+ sudo "ln -nfs #{current_path}/config/nginx.conf /etc/nginx/sites-enabled/#{application}"
+ sudo "ln -nfs #{current_path}/config/unicorn_init.sh /etc/init.d/unicorn_#{application}"
run "mkdir -p #{shared_path}/config"
end
after "deploy:setup", "deploy:setup_config"