Skip to content

Commit

Permalink
bug 1287593: Add create-db command to run.sh (#180). r=bhearsum
Browse files Browse the repository at this point in the history
  • Loading branch information
2978695409620 authored and bhearsum committed Nov 22, 2016
1 parent ba348e1 commit 6ad44d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/run.sh
Expand Up @@ -24,6 +24,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 == "create-db" ]; then
if [ -z "${DBURI}" ]; then
echo "\${DBURI} must be set!"
exit 1
fi
exec python scripts/manage-db.py -d ${DBURI} create
elif [ $1 == "upgrade-db" ]; then
if [ -z "${DBURI}" ]; then
echo "\${DBURI} must be set!"
Expand Down

0 comments on commit 6ad44d5

Please sign in to comment.