Upgrade server when pushing release
since that is really the only point of doing a release, for now
This commit is contained in:
parent
d28c4f7395
commit
d17ab853af
1 changed files with 3 additions and 0 deletions
3
tasks.py
3
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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue