Skip to content

Instantly share code, notes, and snippets.

View vjfrancois's full-sized avatar

Vincent FRANCOIS vjfrancois

View GitHub Profile
vjfrancois / clockwork.cap
Last active August 6, 2016 15:29 — forked from rogercampos/clockwork.rb
Clockwork and delayed_job tasks file for capistrano 3
namespace :workers do
namespace :clockwork do
desc "Stop clockwork"
task :stop do
on roles(:app) do
within release_path do
with rails_env: fetch(:rails_env) do
execute :bundle, :exec, :clockworkd, "-c lib/clockwork.rb --pid-dir=#{cw_pid_dir} --log-dir=#{cw_log_dir} stop"