How does deploying Flask application to a Bluehost (or any) web-server work? [closed] How does deploying Flask application to a Bluehost (or any) web-server work? [closed] flask flask

How does deploying Flask application to a Bluehost (or any) web-server work? [closed]


Yes, this is totally possible! You just need a few different applications instead of the Flask server.

Server & Proxy

The biggest difference between running Flask locally and running it on a server is that you don't want to use the default Flask server. You want to use a dedicated server to run the application and then something reverse proxy the app if you want to use a domain.

For the server: you can use gunicorn, this is a dedicated Python server. This is what will execute the app.

For the reverse proxy: you can use nginx. This will allow you to use a domain name, but this is optional.

This is a great resource for learning how to host apps with Flask on Ubuntu. Digital Ocean's guide to serving Flask Apps. This can be used on any provider, not just Digital Ocean.