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"
|
||||
cd -
|
||||
else
|
||||
echo "$BASE_DIR already existis, doing postupgrade."
|
||||
$PYTHON_BIN $MANAGE postupgradeorchestra --from $CURRENT_VERSION
|
||||
echo "$BASE_DIR already existis, doing nothing."
|
||||
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;"'
|
||||
fi
|
||||
|
||||
|
||||
# admin_tools needs accounts and does not have migrations
|
||||
run "$PYTHON_BIN $MANAGE migrate --noinput accounts"
|
||||
run "$PYTHON_BIN $MANAGE migrate --noinput"
|
||||
|
|
Loading…
Reference in New Issue