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

replace flask dev web server #3

Open
cgallegu opened this issue Feb 23, 2022 · 6 comments
Open

replace flask dev web server #3

cgallegu opened this issue Feb 23, 2022 · 6 comments
Labels
question Further information is requested

Comments

@cgallegu
Copy link
Contributor

It's not recommended to use Flask's dev web server in production.

Replace it with a proper one.

@cgallegu cgallegu added the question Further information is requested label Feb 23, 2022
@cgallegu
Copy link
Contributor Author

Let's decide which one before rolling it out.

@jurelmetal
Copy link
Contributor

Depends on the infra solution. Right now with a plain VM we can choose whatever we like, but in managed infra we may have restrictions on this. May have to look into running the app as a lambda function instead of a web server.

@cgallegu
Copy link
Contributor Author

cgallegu commented Feb 23, 2022 via email

@cgallegu
Copy link
Contributor Author

cgallegu commented Feb 23, 2022

If using a host, gunicorn + flask as per the docs: https://docs.gunicorn.org/en/latest/custom.html

@cgallegu
Copy link
Contributor Author

The API is built on Flask. Flask uses Werkzeug. So let's start from the docs.

@cgallegu
Copy link
Contributor Author

Flask also has Deployment Options in the docs.

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

No branches or pull requests

2 participants