This commit is contained in:
William Mantly 2016-09-30 21:38:10 -04:00
parent 5fef77b61f
commit 994a3297c9
2 changed files with 6 additions and 5 deletions

View File

@ -14,9 +14,9 @@ DJANGO_SETTINGS_MODULE=project.settings.prod
export DJANGO_SETTINGS_MODULE=project.settings.prod export DJANGO_SETTINGS_MODULE=project.settings.prod
git clone $sshURL . git clone $sshURL .
/usr/local/bin/virtualenv ./env
source env/bin/activate ./scripts/setup.sh
pip install -r requirements.txt
cp /var/www/local_settings.py project/settings/local_settings.py cp /var/www/local_settings.py project/settings/local_settings.py
echo "BRANCH = '$name'" >> project/settings/local_settings.py echo "BRANCH = '$name'" >> project/settings/local_settings.py
@ -28,7 +28,7 @@ python3 manage.py loaddata /var/www/django.json
git checkout $name git checkout $name
pip install -r requirements.txt ./scripts/setup.sh
python3 manage.py collectstatic --noinput python3 manage.py collectstatic --noinput
python3 manage.py migrate python3 manage.py migrate

View File

@ -12,7 +12,8 @@ source env/bin/activate
git stash git stash
git pull --force origin $name git pull --force origin $name
pip install -r requirements.txt
./scripts/setup.sh
python3 manage.py collectstatic --noinput python3 manage.py collectstatic --noinput
python3 manage.py migrate python3 manage.py migrate