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

tweaking settings for compatibility with heroku

parent 2d15a8e8
No related branches found
No related tags found
No related merge requests found
web: gunicorn heliosserver.wsgi:application -b 0.0.0.0:8000 web: gunicorn wsgi:application
\ No newline at end of file worker: python manage.py celeryd -E -B --beat
\ No newline at end of file
python-2.7.5
...@@ -24,6 +24,11 @@ DATABASES = { ...@@ -24,6 +24,11 @@ DATABASES = {
} }
} }
# override if we have an env variable
if get_from_env('DATABASE_URL', None):
import dj_database_url
DATABASES['default'] = dj_database_url.config()
# Local time zone for this installation. Choices can be found here: # Local time zone for this installation. Choices can be found here:
# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name # http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
# although not all choices may be available on all operating systems. # although not all choices may be available on all operating systems.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment