add whenever and make rake for dns update
This commit is contained in:
@ -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
10
config/schedule.rb
Normal 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
|
Reference in New Issue
Block a user