Python Forum
Deploy Flask apps on Windows... - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: Deploy Flask apps on Windows... (/thread-34545.html)



Deploy Flask apps on Windows... - SpongeB0B - Aug-08-2021

Hi everyone,

I created a small Flask application. Thanks to this community btw !

It work really well in local. But now I would like to host it to make it available WWW.

The tricky thing is I'm under Windows... (I'm studying Linux meanwhile but still a big noob :) )

I'm currently using Waitress (as it's support windows). but really don't mind to switch if needed.

but I have no ideas how:
  • make it available from a domain : www.exemple.com
  • support https
  • run additional flask apps

If you have any ideas or where to look... ?

Thanks.


RE: Deploy Flask apps on Windows... - snippsat - Aug-08-2021

(Aug-08-2021, 07:06 AM)SpongeB0B Wrote: It work really well in local. But now I would like to host it to make it available WWW.

The tricky thing is I'm under Windows... (I'm studying Linux meanwhile but still a big noob :) )
Deploying Flask on Windows A sad and painful journey of self-reflection.

So i have never tried using Windows as in link over to Deploy,
in Flask can develop the application fully with the build in development server on Windows.
If have make something that want to share with the world should look a using a Host for this.
Then there is Linux that is used,but if using Python friendly friendly host there is tutorial/step on how to do this

So a good cheap host DigitalOcean,this is the setup i like using GuniCorn(alternative uWSGI) and Nginx.
How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 20.04
On DigitalOcean you have control over all setup(good and bad) as start on Blank Ubuntu or Distro of choice,
can span serval Droplets so i tried running 3 Flask application(all can have different setup) at same time no problem

Herko Python(Flask)
So they will do some setup for you like Nginx stuff.

Not messing with server setup AWS Lambda
Zappa - Serverless Python
AWS Lambda Wrote:AWS Lambda lets you run code without provisioning or managing servers.
You pay only for the compute time you consume - there is no charge when your code is not running.



RE: Deploy Flask apps on Windows... - ndc85430 - Aug-08-2021

I've used Heroku for my personal projects because their free plan is good enough for my needs (though I'd probably pay if I needed to).