Skip to content

Commit

Permalink
fixing start scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Aug 23, 2018
1 parent 3cc69e6 commit 0fc65bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gunicorn_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
3 changes: 1 addition & 2 deletions pkdb_app/config/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0fc65bd

Please sign in to comment.