Commit 37a5ac42 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #2969 from zerustech/patch-1

Update lib/tasks/sidekiq.rake
parents 8f9c01fe 4c0c9086
...@@ -9,6 +9,11 @@ namespace :sidekiq do ...@@ -9,6 +9,11 @@ namespace :sidekiq 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 &" 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 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 def pidfile
Rails.root.join("tmp", "pids", "sidekiq.pid") Rails.root.join("tmp", "pids", "sidekiq.pid")
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment