From d10bfb83095762440db5d8db5bd092a1aca5a846 Mon Sep 17 00:00:00 2001 From: Manaswi Sharma <85053597+manaswii@users.noreply.github.com> Date: Sun, 29 Aug 2021 12:20:41 +0530 Subject: [PATCH] Update heroku.md flask login was having many issues for me, it kept logging in and out, sessions were inconsistent. This fixed it for me, source-https://stackoverflow.com/questions/39684364/heroku-gunicorn-flask-login-is-not-working-properly?rq=1 --- heroku.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heroku.md b/heroku.md index b7c0cf63..e5e99c0d 100644 --- a/heroku.md +++ b/heroku.md @@ -92,7 +92,7 @@ Here's how to deploy your implementation of, say, [C$50 Finance](https://cs50.ha 1. Create a new file in CS50 IDE called `Procfile` in `finance/` whose contents are: ``` - web: gunicorn application:app + web: gunicorn application:app --preload ``` That file will tell Heroku to look in a file called `application.py` for a variable called `app` and serve it with [Gunicorn](http://gunicorn.org/), a production-quality web server. (Flask's built-in web server is "good enough for testing but probably not what you want to use in production.")