Commit 37a5ac42716ec2eb582c8b2ebefd5321ff900d65

Authored by Dmitriy Zaporozhets
2 parents 8f9c01fe 4c0c9086

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,7 +8,12 @@ namespace :sidekiq do
8 task :start do 8 task :start do
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 &" 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 end 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 def pidfile 17 def pidfile
13 Rails.root.join("tmp", "pids", "sidekiq.pid") 18 Rails.root.join("tmp", "pids", "sidekiq.pid")
14 end 19 end