Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8041

Python • Re: problem with flask app.py

$
0
0
If you start the Flask app manually, Apache will not be serving the webpage. Instead it is the built in server from Flask that serves everything now. That server is meant to be used for developing, not for 24 hours a day serving, then it may become unstable and fail. The following output even tells you that.
2025-03-06 18:48:13,171 - INFO - [31m[1mWARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.[0m
I'm a Nginx user myself, so I can't help you with Apache to get it all work together, but there must be some tutorials available. The basic idea is the same: Apache (or Nginx or whatever server you choose) must start your program, not you.

Statistics: Posted by kheylen25 — Wed Mar 19, 2025 9:01 am



Viewing all articles
Browse latest Browse all 8041

Trending Articles