mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Add logging to cron
This commit is contained in:
parent
72040b0380
commit
3bb3bc3aa9
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ task deploy: :environment do
|
||||||
invoke :'bundle:install'
|
invoke :'bundle:install'
|
||||||
invoke :'rails:db_migrate'
|
invoke :'rails:db_migrate'
|
||||||
invoke :'rails:assets_precompile'
|
invoke :'rails:assets_precompile'
|
||||||
# invoke :'whenever:update'
|
invoke :'whenever:update'
|
||||||
|
|
||||||
to :launch do
|
to :launch do
|
||||||
queue "mkdir -p #{deploy_to}/current/tmp; touch #{deploy_to}/current/tmp/restart.txt"
|
queue "mkdir -p #{deploy_to}/current/tmp; touch #{deploy_to}/current/tmp/restart.txt"
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Example:
|
# Example:
|
||||||
#
|
#
|
||||||
# set :output, "/path/to/my/cron_log.log"
|
set :output, 'log/cron.log'
|
||||||
#
|
#
|
||||||
# every 2.hours do
|
# every 2.hours do
|
||||||
# command "/usr/bin/some_great_command"
|
# command "/usr/bin/some_great_command"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue