Skip to content Skip to sidebar Skip to footer

Running A Flask Server

So, probably a dumb question, but I am beginning to learn all this so your feedback will be valuable for me. The question is: In flask documentation it says start the flask server

Solution 1:

What you're asking is how you deploy your app. There are many options, that will depend on your needs, your hosting service, etc.

You should check the flask docs for the options. http://flask.pocoo.org/docs/deploying/

In essence, you'll have your flask app running as a local service on the server, so it's not shut down when you close the terminal, and an HTTP server that somehow proxies requests to that service. I guess the most popular is uWSGI with nginx.

Solution 2:

When you upload your code to a remote host, you will need to provide a way to start the server and get things running. How this works is host- and software-dependent. As an example, here is some documentation for how you would fire Flask up on Heroku.

Post a Comment for "Running A Flask Server"