Official cron-restart plugin for dokku.
- dokku 0.30.x+
- docker 1.8.x
# on 0.30.x+
sudo dokku plugin:install https://github.com/dokku/dokku-cron-restart.git cron-restart
cron-restart:report <app> [--single-info-flag] # displays a cron-restart report for one or more apps
cron-restart:set <app> <key> <value> # set or clear a cron-restart property for an app
cron-restart:show-config # show the generated config
Help for any commands can be displayed by specifying the command as an argument to cron-restart:help
. Plugin help output in conjunction with any files in the docs/
folder is used to generate the plugin documentation. Please consult the cron-restart:help
command for any undocumented commands.
# usage
dokku cron-restart:report <app> [--single-info-flag]
flags:
--schedule
: show the service configuration directory
Get cron-restart report for all apps:
dokku cron-restart:report
Get cron-restart report for an app:
dokku cron-restart:report lollipop
You can also retrieve a specific piece of report info via flags:
dokku cron-restart:report lollipop --schedule
# usage
dokku cron-restart:set <app> <key> <value>
Schedule a restart:
'value' is a crontab expression, eg.
0 3 * * *
for each day at 3am
dokku cron-restart:set lollipop schedule '0 3 * * *'
# usage
dokku cron-restart:show-config
Shows the generated crontab config relevant to cron-restart:
dokku cron-restart:show-config