From d17ab853af7ee84d295a1df2ab07eca23c79cd6d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 8 Jun 2024 18:40:14 -0500 Subject: [PATCH] Upgrade server when pushing release since that is really the only point of doing a release, for now --- tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks.py b/tasks.py index 44c4c94..a33596f 100644 --- a/tasks.py +++ b/tasks.py @@ -33,3 +33,6 @@ def release(c): # upload zip archive to server c.run(f'scp dist/{filename} weather.edbob.org:/srv/myweather/releases/{filename}') c.run(f"ssh weather.edbob.org 'cd /srv/myweather/releases; ln -sf {filename} latest.zip'") + + # run upgrade on server + c.run('ssh weather.edbob.org /srv/myweather/upgrade.sh')