add script for starting server

feature/enhanced-ticket-view
vilmibm 2019-01-15 03:43:57 +00:00
parent 14639d78f8
commit f095c5ec7f
1 changed files with 12 additions and 0 deletions

12
scripts/start.sh 100644
View File

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