Browse Source

Merge pull request #7 from andela/ft-heroku-integration

ft - heroku-integration
pull/87/head
Falade Ayodeji Mayowa 8 years ago
committed by GitHub
parent
commit
f6cd039808
4 changed files with 20 additions and 2 deletions
  1. +1
    -0
      Procfile
  2. +5
    -0
      hc/settings.py
  3. +13
    -2
      requirements.txt
  4. +1
    -0
      runtime.txt

+ 1
- 0
Procfile View File

@ -0,0 +1 @@
web: gunicorn hc.wsgi --log-file -

+ 5
- 0
hc/settings.py View File

@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/1.8/ref/settings/
import os
import warnings
import dj_database_url
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@ -110,6 +111,10 @@ if os.environ.get("DB") == "mysql":
}
}
if os.environ.get("APP_ENV") == "prod":
DATABASES['default'] = dj_database_url.config()
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'


+ 13
- 2
requirements.txt View File

@ -1,9 +1,20 @@
boto==2.42.0
cssselect==0.9.2
cssutils==1.0.1
dj-database-url==0.4.1
Django==1.10
django-appconf==1.0.1
django-compressor==2.1
django-ses-backend==0.1.1
Django==1.10
django_compressor==2.1
djmail==0.11.0
futures==3.0.3
gunicorn==19.6.0
lxml==3.6.4
mock==2.0.0
pbr==1.10.0
premailer==2.9.6
psycopg2==2.6.1
rcssmin==1.0.6
requests==2.9.1
rjsmin==1.0.12
six==1.10.0

+ 1
- 0
runtime.txt View File

@ -0,0 +1 @@
python-3.5.2

Loading…
Cancel
Save