Python Forum
Flask, Self-hosted deployment, which server ?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flask, Self-hosted deployment, which server ?
#1
Question 
Hi everyone,

On the official Flask support we can see listed under the Self-hosted options the ~following:

Standalone WSGI Containers
- Gunicorn
- uWSGI
- Gevent
- Twisted Web
- Proxy Setups

uWSGI

mod_wsgi (Apache)

FastCGI

CGI

and here they talk about : Waitress


I have no idea which one to choose ? what are the Cons & Pro..

Is the embedded flask server is not enough for a little application ?

Thanks
Reply
#2
(Apr-11-2021, 06:33 AM)SpongeB0B Wrote: Is the embedded flask server is not enough for a little application ?
No,it's a development server so can do all development local to a finish app,if shall only run local can use it,
when finish and/if want to share with the world then need a production server.
I have used before Gunicorn in combo with Nginx,which is good combination,see that there is no Apache usage as Nginx is easier/ better.

Digital Ocean guides are good and updatet can be applied elsewhere even if not use DO.
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 20.04

Heroku is another Python friendly host.
Heroku makes it easy to deploy and scale Python apps

An other way is to use a serverless compute service like AWS Lambda
Quote:Run code without thinking about servers or clusters. Only pay for what you use.
Deploy a Python API on AWS, Zappa - Serverless Python.
SpongeB0B likes this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Server Error with parse_args() using Flask NoNameoN 0 1,063 Jul-30-2022, 09:42 AM
Last Post: NoNameoN
  [split] flask 500 internal server error DarthTensor 3 3,946 Nov-11-2021, 06:10 AM
Last Post: DarthTensor
  Flask Ubuntu Server Not Running Wheel 0 1,976 Jul-14-2020, 08:12 PM
Last Post: Wheel
  Flask deployment from heck lmolter54 4 2,486 Jun-04-2020, 09:08 PM
Last Post: lmolter54
  Django deployment on apache server? tmmaersk 2 2,075 Mar-28-2020, 03:35 PM
Last Post: tmmaersk
  How to send data from remotely hosted HTML form to Pi sajid 2 2,529 Jun-27-2019, 10:28 PM
Last Post: sajid
  Django Deployment Problem DoktorSoosMann 0 1,926 Aug-16-2018, 01:42 PM
Last Post: DoktorSoosMann
  how to place Flask code on a public web server rarevesselt 6 6,871 Oct-04-2017, 07:32 AM
Last Post: rarevesselt

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020