From 0fc65bd8337aa2c8702d2b4a7fa0cee133ecbf24 Mon Sep 17 00:00:00 2001 From: Matthias Koenig Date: Thu, 23 Aug 2018 17:52:51 +0200 Subject: [PATCH] fixing start scripts --- gunicorn_start.sh | 2 +- pkdb_app/config/local.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gunicorn_start.sh b/gunicorn_start.sh index dbdca61f..da72ec3b 100755 --- a/gunicorn_start.sh +++ b/gunicorn_start.sh @@ -23,7 +23,7 @@ test -d $RUNDIR || mkdir -p $RUNDIR # Start your Django Unicorn # Programs meant to be run under supervisor should not daemonize themselves (do not use --daemon) -exec /home/mkoenig/envs/flutype_webapp/bin/gunicorn ${DJANGO_WSGI_MODULE}:application \ +exec /home/mkoenig/envs/pkdb/bin/gunicorn ${DJANGO_WSGI_MODULE}:application \ --name $NAME \ --workers $NUM_WORKERS \ --user $USER \ diff --git a/pkdb_app/config/local.py b/pkdb_app/config/local.py index 0ed77932..f565747a 100755 --- a/pkdb_app/config/local.py +++ b/pkdb_app/config/local.py @@ -25,13 +25,12 @@ class Local(Common): ] # Postgres - DATABASES = { 'default': dj_database_url.config( # postgres://USER:PASSWORD@HOST:PORT/NAME default=f'postgres://postgres:pass@postgres:5432/postgres', conn_max_age=int(os.getenv('POSTGRES_CONN_MAX_AGE', 600)) - ) + ), } ''' DATABASES = {