Blame view

resources/post-deploy.sh 345 Bytes
1877f051   hitier   Add new post-depl...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# SCript to run after heliopropa source where updated.
#
# Should be execute within root directory of project
#
# May be run by the git post-receive hook



source  ./venv/bin/activate
pip install -r requirements.txt

# may be more commands to run ...
# flask db upgrade
sudo systemctl restart heliopropa
sudo systemctl restart nginx