mirror of
https://github.com/jwinterm/tubbymemes.git
synced 2026-10-17 05:21:28 +02:00
include crontab for sync updates
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user