Skip to content

Commit

Permalink
8 - Deploy to Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
codingforentrepreneurs committed Oct 19, 2017
1 parent f65d670 commit a204115
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn ecommerce.wsgi
5 changes: 5 additions & 0 deletions src/ecommerce/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
}
}

import dj_database_url
db_from_env = dj_database_url.config() #postgreSQL Database in heroku
DATABASES['default'].update(db_from_env)
DATABASES['default']['CONN_MAX_AGE'] = 500


# Password validation
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
Expand Down
3 changes: 3 additions & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
certifi==2017.7.27.1
cfe==0.0.15
chardet==3.0.4
dj-database-url==0.4.2
django==1.11.6
gitdb2==2.0.3
gitpython==2.1.7
gunicorn==19.7.1
idna==2.6
olefile==0.44
pillow==4.3.0
pip==9.0.1
psycopg2==2.7.3.1
pytz==2017.2
requests==2.18.4
setuptools==36.6.0
Expand Down
20 changes: 20 additions & 0 deletions src/requirements/archive__2017-10-19__2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
certifi==2017.7.27.1
cfe==0.0.15
chardet==3.0.4
dj-database-url==0.4.2
Django==1.11.6
gitdb2==2.0.3
GitPython==2.1.7
gunicorn==19.7.1
idna==2.6
olefile==0.44
Pillow==4.3.0
pip==9.0.1
psycopg2==2.7.3.1
pytz==2017.2
requests==2.18.4
setuptools==36.6.0
smmap2==2.0.3
stripe==1.68.0
urllib3==1.22
wheel==0.30.0
1 change: 1 addition & 0 deletions src/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.6.2

0 comments on commit a204115

Please sign in to comment.