Update crontab after deploy

This commit is contained in:
Maximilian Grundke
2018-02-04 14:02:49 +01:00
parent 16337ba9af
commit 6fd00a6650

View File

@ -23,3 +23,11 @@ namespace :deploy do
end
end
end
namespace :whenever do
task :update_crontab do
run 'bundle exec whenever --update-crontab'
end
end
after 'deploy', 'whenever:update_crontab'