mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 09:10:25 +08:00
Replace Clockwork with Sidetiq
This commit is contained in:
parent
aec929b184
commit
a6b4b5dbf2
44 changed files with 106 additions and 299 deletions
|
@ -68,26 +68,6 @@ end
|
|||
|
||||
after "deploy:setup", "config:nginx"
|
||||
|
||||
# Tasks to start/stop/restart a daemonized clockwork instance
|
||||
namespace :clockwork do
|
||||
desc "Start clockwork"
|
||||
task :start, :roles => [:app] do
|
||||
run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec clockworkd -c #{current_path}/config/clock.rb --pid-dir #{shared_path}/pids --log --log-dir #{shared_path}/log start"
|
||||
end
|
||||
|
||||
task :stop, :roles => [:app] do
|
||||
run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec clockworkd -c #{current_path}/config/clock.rb --pid-dir #{shared_path}/pids --log --log-dir #{shared_path}/log stop"
|
||||
end
|
||||
|
||||
task :restart, :roles => [:app] do
|
||||
run "cd #{current_path} && RAILS_ENV=#{rails_env} bundle exec clockworkd -c #{current_path}/config/clock.rb --pid-dir #{shared_path}/pids --log --log-dir #{shared_path}/log restart"
|
||||
end
|
||||
end
|
||||
|
||||
after "deploy:stop", "clockwork:stop"
|
||||
after "deploy:start", "clockwork:start"
|
||||
before "deploy:restart", "clockwork:restart"
|
||||
|
||||
# Seed your database with the initial production image. Note that the production
|
||||
# image assumes an empty, unmigrated database.
|
||||
namespace :db do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue