Skip to content

Instantly share code, notes, and snippets.

View causztic's full-sized avatar
👋

yaojie causztic

👋
View GitHub Profile
@causztic
causztic / clockwork.rb
Last active December 18, 2019 02:00 — forked from rogercampos/clockwork.rb
Capistrano running clockwork as daemon with upstart
after "deploy:stop", "clockwork:stop"
after "deploy:start", "clockwork:start"
after "deploy:restart", "clockwork:restart"
set :clockwork_roles, :blabla
set :cw_log_file, "#{current_path}/log/clockwork.log"
set :cw_pid_file, "#{current_path}/tmp/pids/clockwork.pid"
set :rails_env, ENV['rails_env'] || ''
namespace :clockwork do