amayii0 / GarageOpenerR1

Raspberry Pi Garage door opener using jQuery Mobile and Flask.
4 stars 2 forks source link

Flask web server becomes unresponsive #5

Open amayii0 opened 6 years ago

amayii0 commented 6 years ago

Looks like I should change how to start web server https://stackoverflow.com/questions/24884901/python-flask-webserver-stop-responding

If you are using the default Flask webserver: Don't. It's intended for development ONLY.

As additional resource it's worth reading these two blog posts about deploying a Flask application:

http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xvii-deployment-on-linux-even-on-the-raspberry-pi http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xviii-deployment-on-the-heroku-cloud

And for monitoring processes in your webserver, you could give Watchy a try:

http://redbrain.github.io/watchy/

amayii0 commented 6 years ago

How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Etch https://www.howtoforge.com/how-to-set-up-apache2-with-mod_fcgid-and-php5-on-debian-etch