asd
This commit is contained in:
parent
5fef77b61f
commit
994a3297c9
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user