update git settings
This commit is contained in:
@@ -199,17 +199,16 @@ fi
|
||||
|
||||
if [ $usegit = True ] ; then
|
||||
echo -e "\tCloning django project"
|
||||
ssh-agent bash -c 'ssh-add $gitkey 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
|
||||
git init 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
|
||||
git remote add origin $giturl 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
|
||||
git pull origin master 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;'
|
||||
git pull origin master 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc;
|
||||
echo -e "\tInstalling pip requirements"
|
||||
pip install -r requirements.txt 1>> $gitlogloc 2>> $gitlogloc 3>> $gitlogloc
|
||||
fi
|
||||
|
||||
# collect static, migrate
|
||||
echo -e "\tCollecting static"
|
||||
python manage.py collectstatic 1>> $djalogloc 2>> $djalogloc 3>> $djalogloc
|
||||
python manage.py collectstatic --noinput 1>> $djalogloc 2>> $djalogloc 3>> $djalogloc
|
||||
if [ $? -ne 0 ] ; then
|
||||
echo -e "Failed to collect static files. $djamsg"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user