Upgrade server when pushing release

since that is really the only point of doing a release, for now
This commit is contained in:
Lance Edgar 2024-06-08 18:40:14 -05:00
parent d28c4f7395
commit d17ab853af

View file

@ -33,3 +33,6 @@ def release(c):
# upload zip archive to server # upload zip archive to server
c.run(f'scp dist/{filename} weather.edbob.org:/srv/myweather/releases/{filename}') 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'") 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')