Upgrade tempmon database when updating production demo

This commit is contained in:
Lance Edgar 2017-04-01 16:31:52 -05:00
parent ed1cc301a3
commit b9021afd96

2
fabfile.py vendored
View file

@ -54,6 +54,8 @@ def update_production(all='false'):
sudo('pip install --editable .')
with cd('/srv/envs/demo'):
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')
run('curl --output demo.html https://rattailproject.org/demo/')
run('rm demo.html')