Skip to content

Commit

Permalink
#5 Set debug to False and add heroku as allowed hosts
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Pollicino <[email protected]>
  • Loading branch information
omonimus1 committed Mar 2, 2022
1 parent 58ea49a commit d5de331
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ trim
autopep8
black # For code quality check purposes
mypy # for english type checking
django-environ
django-environ
dj-database-url
gunicorn
whitenoise
1 change: 1 addition & 0 deletions webAppClassifier/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: gunicorn webAppClassifier.wsgi --log-file -
4 changes: 2 additions & 2 deletions webAppClassifier/webAppClassifier/.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SECRET_KEY=django-insecure-_l=2_dy=i8!%o$-)3!^29-t=c6c^n-k61_mjqfxp7w3qz4ec!3
DEBUG=True
HOST=13.40.108.117
DEBUG=False
HOST=['127.0.0.1', '.herokuapp.com']
DATABASE_NAME=
DATABASE_USER=
DATABASE_PASSWORD=
Expand Down
4 changes: 2 additions & 2 deletions webAppClassifier/webAppClassifier/.env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SECRET_KEY=django-insecure-_l=2_dy=i8!%o$-)3!^29-t=c6c^n-k61_mjqfxp7w3qz4ec!3
DEBUG=True
HOST=13.40.108.117
DEBUG=False
HOST=['127.0.0.1', '.herokuapp.com']
DATABASE_NAME=
DATABASE_USER=
DATABASE_PASSWORD=
Expand Down
1 change: 1 addition & 0 deletions webAppClassifier/webAppClassifier/runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python-3.9

0 comments on commit d5de331

Please sign in to comment.