add whenever and make rake for dns update

This commit is contained in:
2022-04-09 13:59:36 +03:00
parent c39b2e39fd
commit 21bbc6dcd7
7 changed files with 46 additions and 20 deletions

View File

@ -60,6 +60,7 @@ task :deploy do
in_path(fetch(:current_path)) do
invoke :'passenger:restart'
end
invoke :'whenever:update'
end
end

10
config/schedule.rb Normal file
View File

@ -0,0 +1,10 @@
# Use this file to easily define all of your cron jobs.
#
set :output, "/home/feenix/gateway/shared/log/whenever.log"
every :hour do
rake "dns:update"
end
# Learn more: http://github.com/javan/whenever