Skip to content
Snippets Groups Projects
Commit c9d93bc8 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

fix rake task

parent 3f2b1d7f
No related branches found
No related tags found
No related merge requests found
namespace :sidekiq do
desc "GITLAB | Stop sidekiq"
task :stop do
run "bundle exec sidekiqctl stop #{pidfile}"
system "bundle exec sidekiqctl stop #{pidfile}"
end
 
desc "GITLAB | Start sidekiq"
task :start do
run "nohup bundle exec sidekiq -q runner,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &"
system "nohup bundle exec sidekiq -q runner,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &"
end
 
def pidfile
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment