Skip to content
Snippets Groups Projects
Commit 8adf2b55 authored by Ben Adida's avatar Ben Adida
Browse files

added pooling

parent 3db9d926
Branches
Tags
No related merge requests found
web: gunicorn wsgi:application
web: gunicorn wsgi:application -b 0.0.0.0:$PORT -w 8
worker: python manage.py celeryd -E -B --beat
\ No newline at end of file
......@@ -17,3 +17,4 @@ dj_database_url==0.2.2
django-sslify==0.2
django_webtest==1.7.5
webtest==2.0.7
django-db-pool==0.0.10
......@@ -28,6 +28,8 @@ DATABASES = {
if get_from_env('DATABASE_URL', None):
import dj_database_url
DATABASES['default'] = dj_database_url.config()
DATABASES['default']['ENGINE'] = 'dbpool.db.backends.postgresql_psycopg2'
DATABASES['default']['OPTIONS'] = {'MAX_CONNS': 1}
# Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment