Fixes on deploy.sh
This commit is contained in:
parent
44d2c46120
commit
ce42242cb0
|
@ -64,8 +64,7 @@ if [[ ! -e $BASE_DIR ]]; then
|
||||||
surun "orchestra-admin startproject $PROJECT_NAME"
|
surun "orchestra-admin startproject $PROJECT_NAME"
|
||||||
cd -
|
cd -
|
||||||
else
|
else
|
||||||
echo "$BASE_DIR already existis, doing postupgrade."
|
echo "$BASE_DIR already existis, doing nothing."
|
||||||
$PYTHON_BIN $MANAGE postupgradeorchestra --from $CURRENT_VERSION
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -86,6 +85,7 @@ if [[ ! $(sudo su postgres -c "psql -lqt" | awk {'print $1'} | grep '^orchestra$
|
||||||
sudo su postgres -c 'psql -c "ALTER USER orchestra CREATEDB;"'
|
sudo su postgres -c 'psql -c "ALTER USER orchestra CREATEDB;"'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# admin_tools needs accounts and does not have migrations
|
# admin_tools needs accounts and does not have migrations
|
||||||
run "$PYTHON_BIN $MANAGE migrate --noinput accounts"
|
run "$PYTHON_BIN $MANAGE migrate --noinput accounts"
|
||||||
run "$PYTHON_BIN $MANAGE migrate --noinput"
|
run "$PYTHON_BIN $MANAGE migrate --noinput"
|
||||||
|
|
Loading…
Reference in a new issue