add script for starting server
parent
14639d78f8
commit
f095c5ec7f
|
@ -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
|
Loading…
Reference in New Issue