Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Last active February 22, 2017 13:13
Show Gist options
  • Save richardsonlima/71502bc5c090b27f32eb7f3eab4e225b to your computer and use it in GitHub Desktop.
Save richardsonlima/71502bc5c090b27f32eb7f3eab4e225b to your computer and use it in GitHub Desktop.
#!/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
@AsaK
Copy link

AsaK commented Feb 22, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment