Merge pull request #2969 from zerustech/patch-1
Update lib/tasks/sidekiq.rake
This commit is contained in:
commit
37a5ac4271
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue