diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-12 09:25:53 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-12 09:25:53 -0800 |
commit | 37a5ac42716ec2eb582c8b2ebefd5321ff900d65 (patch) | |
tree | 10e945259efe7b742ca02acf74e0507805965ebe /lib | |
parent | 8f9c01feed31c8a87bfbaf89727cd6626ca73db9 (diff) | |
parent | 4c0c90865502e5a1c22933e51e53a1625d0bd61a (diff) | |
download | gitlab-ce-37a5ac42716ec2eb582c8b2ebefd5321ff900d65.tar.gz |
Merge pull request #2969 from zerustech/patch-1
Update lib/tasks/sidekiq.rake
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/sidekiq.rake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/tasks/sidekiq.rake b/lib/tasks/sidekiq.rake index 67e8daafec7..cf99951e027 100644 --- a/lib/tasks/sidekiq.rake +++ b/lib/tasks/sidekiq.rake @@ -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 |