asd
This commit is contained in:
parent
67a7f77599
commit
ee40dcc7f6
10
create.sh
10
create.sh
@ -12,18 +12,23 @@ mkdir /var/www/gitwrapper/$name
|
|||||||
cd /var/www/gitwrapper/$name
|
cd /var/www/gitwrapper/$name
|
||||||
chmod 777 .
|
chmod 777 .
|
||||||
echo `pwd`
|
echo `pwd`
|
||||||
|
echo '============='
|
||||||
DJANGO_SETTINGS_MODULE=project.settings.prod
|
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 .
|
||||||
git checkout prod
|
git checkout prod
|
||||||
|
git status
|
||||||
|
echo "=================="
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# change https urls to ssh
|
# change https urls to ssh
|
||||||
perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git@github.com:/g' .gitmodules
|
perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git@github.com:/g' .gitmodules
|
||||||
|
git submodule sync
|
||||||
|
|
||||||
./scripts/setup.sh
|
./scripts/setup.sh
|
||||||
|
git stash
|
||||||
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
|
||||||
|
|
||||||
@ -37,6 +42,7 @@ echo "BRANCH = '$name'" >> project/settings/local_settings.py
|
|||||||
git checkout $name
|
git checkout $name
|
||||||
# change https urls to ssh
|
# change https urls to ssh
|
||||||
perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git@github.com:/g' .gitmodules
|
perl -pi -e 's/https:\/\/github.com\//ssh:\/\/git@github.com:/g' .gitmodules
|
||||||
|
git submodule sync
|
||||||
./scripts/setup.sh
|
./scripts/setup.sh
|
||||||
git stash
|
git stash
|
||||||
# python3 manage.py collectstatic --noinput
|
# python3 manage.py collectstatic --noinput
|
||||||
|
Loading…
x
Reference in New Issue
Block a user