Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
angstwad opened this issue Aug 1, 2015 · 0 comments

Comments

@angstwad
Copy link
Contributor

angstwad commented Aug 1, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant