Fixes on deploy.sh

This commit is contained in:
Marc Aymerich 2015-05-05 20:24:29 +00:00
parent 44d2c46120
commit ce42242cb0
1 changed files with 2 additions and 2 deletions

View File

@ -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"