Commit 37a5ac42716ec2eb582c8b2ebefd5321ff900d65
Exists in
master
and in
4 other branches
Merge pull request #2969 from zerustech/patch-1
Update lib/tasks/sidekiq.rake
Showing
1 changed file
with
6 additions
and
1 deletions
Show diff stats
lib/tasks/sidekiq.rake
... | ... | @@ -8,7 +8,12 @@ namespace :sidekiq do |
8 | 8 | task :start do |
9 | 9 | 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 &" |
10 | 10 | end |
11 | - | |
11 | + | |
12 | + desc "GITLAB | Start sidekiq with launchd on Mac OS X" | |
13 | + task :launchd do | |
14 | + 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" | |
15 | + end | |
16 | + | |
12 | 17 | def pidfile |
13 | 18 | Rails.root.join("tmp", "pids", "sidekiq.pid") |
14 | 19 | end | ... | ... |