include crontab for sync updates

This commit is contained in:
lza_menace
2022-01-10 20:59:13 -08:00
parent 8ded845e58
commit d152a6dffb
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -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.
+5
View File
@@ -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"