Skip to content
Browse files

sudo for unicorn service

  • Loading branch information...
1 parent 53b709a commit 341e95d5bf74ee59d5ca19611d731265ec6d77fa @cihad committed Feb 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/recipes/unicorn.rb
View
2 config/recipes/unicorn.rb
@@ -19,7 +19,7 @@
%w[start stop restart].each do |command|
desc "#{command} unicorn"
task command, roles: :app do
- run "service unicorn_#{application} #{command}"
+ run "#{sudo} service unicorn_#{application} #{command}"
end
after "deploy:#{command}", "unicorn:#{command}"
end

0 comments on commit 341e95d

Please sign in to comment.
Something went wrong with that request. Please try again.