stormpath-flask icon indicating copy to clipboard operation
stormpath-flask copied to clipboard

Running a flask app using flask-stormpath with gunicorn requires preload_app to be true.

Open angstwad opened this issue 10 years ago • 0 comments

I could not get flask-stormpath to work when running via Gunicorn (and I was assuming it was some kind of nginx problem), and it turned out to be a Gunicorn is the problem.

Just a hunch, but I think it's because of the session caching. Using the preload_app in Gunicorn and setting this to true (so that the workers use shared memory) resolved this issue.

Just FYI, I'm using the sync server, two workers, with preload_app.

angstwad avatar Aug 01 '15 02:08 angstwad