Upgrade tempmon database when updating production demo
This commit is contained in:
parent
ed1cc301a3
commit
b9021afd96
2
fabfile.py
vendored
2
fabfile.py
vendored
|
@ -54,6 +54,8 @@ def update_production(all='false'):
|
||||||
sudo('pip install --editable .')
|
sudo('pip install --editable .')
|
||||||
with cd('/srv/envs/demo'):
|
with cd('/srv/envs/demo'):
|
||||||
sudo('bin/alembic --config=app/rattail.conf upgrade heads', user='rattail')
|
sudo('bin/alembic --config=app/rattail.conf upgrade heads', user='rattail')
|
||||||
|
with cd('/srv/envs/demo'):
|
||||||
|
sudo('bin/alembic --config=app/tempmon.conf upgrade heads', user='rattail')
|
||||||
sudo('service apache2 restart')
|
sudo('service apache2 restart')
|
||||||
run('curl --output demo.html https://rattailproject.org/demo/')
|
run('curl --output demo.html https://rattailproject.org/demo/')
|
||||||
run('rm demo.html')
|
run('rm demo.html')
|
||||||
|
|
Loading…
Reference in a new issue