Merge pull request #2969 from zerustech/patch-1

Update lib/tasks/sidekiq.rake
This commit is contained in:
Dmitriy Zaporozhets 2013-02-12 09:25:53 -08:00
commit 37a5ac4271

View file

@ -8,7 +8,12 @@ namespace :sidekiq do
task :start do
run "nohup bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &"
end
desc "GITLAB | Start sidekiq with launchd on Mac OS X"
task :launchd do
run "bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1"
end
def pidfile
Rails.root.join("tmp", "pids", "sidekiq.pid")
end