Skip to content

Commit

Permalink
add procfile and runtime.txx
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-nzau committed Apr 8, 2017
1 parent 7132256 commit d5a67d8
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 9 deletions.
1 change: 1 addition & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn hc.wsgi
18 changes: 16 additions & 2 deletions hc/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import os
import warnings
import dj_database_url

BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Expand Down Expand Up @@ -96,6 +97,7 @@
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'hc',
'USER': 'postgres',
'PASSWORD': 'root',
'TEST': {'CHARSET': 'UTF8'}
}
}
Expand Down Expand Up @@ -133,7 +135,8 @@
)
COMPRESS_OFFLINE = True

EMAIL_BACKEND = "djmail.backends.default.EmailBackend"
EMAIL_BACKEND="djmail.backends.default.EmailBackend"
DJMAIL_REAL_BACKEND="django.core.mail.backends.console.EmailBackend"

# Slack integration -- override these in local_settings
SLACK_CLIENT_ID = None
Expand All @@ -149,7 +152,18 @@
PUSHBULLET_CLIENT_ID = None
PUSHBULLET_CLIENT_SECRET = None

# # Allow all host hosts/domain names for this site
ALLOWED_HOSTS = ['healthchecks-code-dragons.herok.com/']

# Parse database configuration from $DATABASE_URL
# DATABASES = {'default': dj_database_url.config()}
DATABASE_URL = 'postgresql:///postgresql'
DATABASES = {'default': dj_database_url.config(default=DATABASE_URL)}

# Honor the 'X-Forwarded-Proto' header for request.is_secure()
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')

if os.path.exists(os.path.join(BASE_DIR, "hc/local_settings.py")):
from hc.local_settings import *
else:
warnings.warn("local_settings.py not found, using defaults")
warnings.warn("local_settings.py not found, using defaults")
30 changes: 23 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
appdirs==1.4.3
boto==2.46.1
cssselect==1.0.1
cssutils==1.0.2
dj-database-url==0.4.2
Django==1.10
django-appconf==1.0.1
django-compressor==2.1.1
django-ses-backend==0.1.1
Django==1.10
django_compressor==2.1
djmail==0.11.0
futures==3.0.3
premailer==2.9.6
psycopg2==2.6.1
requests==2.9.1
djmail==1.0.1
ez-setup==0.9
futures==3.0.5
lxml==3.7.3
mock==2.0.0
packaging==16.8
pbr==2.0.0
premailer==3.0.1
psycopg2==2.7.1
pyparsing==2.2.0
python-http-client==2.2.1
rcssmin==1.0.6
requests==2.13.0
rjsmin==1.0.12
sendgrid==3.6.5
six==1.10.0
1 change: 1 addition & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.6.1

0 comments on commit d5a67d8

Please sign in to comment.