Skip to content

Commit

Permalink
Add upgrade-db action to docker run script. r=rail
Browse files Browse the repository at this point in the history
Ben Hearsum committed Jun 9, 2016
1 parent cc7405f commit 09a1d97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uwsgi/run.sh
Original file line number Diff line number Diff line change
@@ -6,6 +6,12 @@ elif [ $1 == "admin" ]; then
exec uwsgi --ini /app/uwsgi/admin.ini --python-autoreload 1
elif [ $1 == "admin-dev" ]; then
exec uwsgi --ini /app/uwsgi/admin.dev.ini --ini /app/uwsgi/admin.ini --python-autoreload 1
elif [ $1 == "upgrade-db" ]; then
if [ -z "${DBURI}" ]; then
echo "\${DBURI} must be set!"
exit 1
fi
exec python scripts/manage-db.py -d ${DBURI} upgrade
else
echo "unknown mode: $1"
exit 1

0 comments on commit 09a1d97

Please sign in to comment.