Created
March 9, 2015 06:32
-
-
Save luismasuelli/82410828ebf11fbe7662 to your computer and use it in GitHub Desktop.
Implementacion de post-receive para poner en los git de webfaction de aplicaciones django regulares
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/sh | |
#myuser: account user @ webfaction | |
#mydeploy: web application name (when created in webfaction's cpanel interface) | |
#mydjangoprj: however is named the django project inside the application | |
# (NOTES: if project name is changed, the apache wsgi files must be changed accordingly) | |
GIT_WORK_TREE=/home/myuser/webapps/mydeploy/mydjangoprj git checkout -f master | |
GIT_WORK_TREE=/home/myuser/webapps/mydeploy/mydjangoprj git reset --hard | |
cd /home/myuser/webapps/mydeploy/mydjangoprj | |
#pip install --upgrade -r /home/myuser/webapps/mydeploy/mydjangoprj/requirements.txt | |
python2.7 manage.py collectstatic --noinput | |
python2.7 manage.py migrate | |
python2.7 manage.py compilemessages | |
/home/myuser/webapps/mydjangoprj/apache2/bin/start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment