stormpath-flask
stormpath-flask copied to clipboard
Running a flask app using flask-stormpath with gunicorn requires preload_app to be true.
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.