Skip to content

Commit 304ecef

Browse files
author
PRITAM CHAKRABORTY
committed
just 1 step ahead for deployment
1 parent 8944698 commit 304ecef

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Procfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
release: py manage.py migrate
2+
web: gunicorn core.wsgi

core/settings/prod.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
from os import environ, path
22
from .common import *
3+
import dj_database_url as db_url
34

45
SECRET_KEY = environ.get('SECRET_KEY')
56

67
DEBUG = False
78

8-
ALLOWED_HOSTS = []
9+
ALLOWED_HOSTS = ["https://pritdjango-blogapi.herokuapp.com/"]
10+
11+
DATABASES = {
12+
'default': db_url.config()
13+
}
14+
15+
# prod git: https://git.heroku.com/pritdjango-blogapi.git

0 commit comments

Comments
 (0)