From f095c5ec7fbcca6807e68f40369f6c4967c640e8 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 15 Jan 2019 03:43:57 +0000 Subject: [PATCH] add script for starting server --- scripts/start.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/start.sh diff --git a/scripts/start.sh b/scripts/start.sh new file mode 100644 index 0000000..ce67861 --- /dev/null +++ b/scripts/start.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +PORT=8888 +INSTALL_ROOT=/town/src/tildetown-admin +APP_ROOT=$INSTALL_ROOT/ttadmin + +VENV=/town/venvs/ttadmin + +source $VENV/bin/activate +export DJANGO_SETTINGS_MODULE=settings_live +cd $APP_ROOT +gunicorn -b0.0.0.0:$PORT ttadmin.wsgi