From 8c8519055b2b1e94fcac8cf8695bd1f221dde2b5 Mon Sep 17 00:00:00 2001 From: "Glenn Y. Rolland" Date: Sat, 8 May 2021 17:32:42 +0200 Subject: [PATCH] doc: add REPOSITORY related vars & cron job --- README.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/README.md b/README.md index 77e7e71..e5ebda0 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,39 @@ Please define the following variables GITIT_USER_EMAIL: glenux@glenux.net GITIT_USER_NAME: Glenn Y. Rolland +GITIT_REMOTE_REPOSITORY: git@github.com/glenux/somewhere +GITIT_REMOTE_DOMAIN: github.com Please mount the following volumes /var/lib/dokku/data/storage/cryptochemists-wiki-prod => /data +You can also add a cron task to mirror the wiki on a regular basis + + # server cron jobs + MAILTO="admin@server.com" + PATH=/usr/local/bin:/usr/bin:/bin + SHELL=/bin/bash + + # m h dom mon dow username command + # * * * * * dokku command to be executed + # - - - - - + # | | | | | + # | | | | +----- day of week (0 - 6) (Sunday=0) + # | | | +------- month (1 - 12) + # | | +--------- day of month (1 - 31) + # | +----------- hour (0 - 23) + # +----------- min (0 - 59) + + ### HIGH TRAFFIC TIME IS B/W 00:00 - 04:00 AND 14:00 - 23:59 + ### RUN YOUR TASKS FROM 04:00 - 14:00 + ### KEEP SORTED IN TIME ORDER + + ### PLACE ALL CRON TASKS BELOW + + # removes unresponsive users from the subscriber list to decrease bounce rates + 0 * * * * dokku dokku --rm run cryptochemists-wiki-prod sh -c "cd wikidata && git push --set-upstream origin master" + + ### PLACE ALL CRON TASKS ABOVE, DO NOT REMOVE THE WHITESPACE AFTER THIS LINE + +