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"