From d152a6dffb652f91546b3ad8adfb25e3c3edbc0c Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 10 Jan 2022 20:59:13 -0800 Subject: [PATCH] include crontab for sync updates --- README.md | 3 +++ conf/crontab | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 conf/crontab diff --git a/README.md b/README.md index f50596c..6202166 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,9 @@ cp conf/suchwowx.service /etc/systemd/system/suchwowx.service systemctl daemon-reload systemctl enable suchwowx systemctl start suchwowx + +# setup ongoing syncing with remote servers and Avalanche network +crontab -u suchwowx conf/crontab ``` At this point you should have Nginx web server running with TLS certificates generated with Letsencrypt/Certbot, Systemd services for IPFS daemon for serving files and Gunicorn for serving the Flask application. diff --git a/conf/crontab b/conf/crontab new file mode 100644 index 0000000..eaa8b94 --- /dev/null +++ b/conf/crontab @@ -0,0 +1,5 @@ +# Sync with remote servers specified by operator +0 * * * * sh -c "cd /opt/suchwowx; ./manage.sh sync-remotes" + +# Sync with Avalanche blockchain to import minted memes +30 * * * * sh -c "cd /opt/suchwowx; ./manage.sh sync-avax"