Last active
February 22, 2017 13:13
-
-
Save richardsonlima/71502bc5c090b27f32eb7f3eab4e225b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BASE="/home/django/framework-base" | |
cd ${BASE} && git pull [email protected]:xyz/sistema.git | |
/usr/bin/pip3 install -r requirements.txt | |
/usr/bin/python3.4 manage.py collectstatic --noinput | |
/usr/bin/python3.4 manage.py makemigrations | |
/usr/bin/python3.4 manage.py migrate | |
/usr/bin/python3.4 manage.py compilemessages | |
#service gunicorn restart | |
#service nginx restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tem que ser algo semelhante a isso:
cd /home/django/framework-base/
git pull origin master
pip3 install -r requirements.txt
python3 manage.py collectstatic --noinput
python3 manage.py makemigrations
python3 manage.py migrate
service gunicorn restart
service nginx restart