Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restarting Waitress?
#1
I'm using Waitress to serve Python/Flask web pages on CentOS.

I'm using an HTML template file in the templates folder. When I change the HTML template file, and refresh the main page in my web app, the changes made in the template are not visible.

I'm assuming I need to restart Waitress to force the changes to the template file to be rendered.

So what is the correct way to restart Waitress?
Reply
#2
You may want to contact authors of waitress here: [email protected]
Reply
#3
Thank you. I have contacted them. Will update this thread with any response...
Reply
#4
Hi,

this behaviour is not specific for Waitress, is applies to all WSGI servers unless you set them to "dev" mode (if existing).

Generally speaking, files are read at the start of the server and will _not_ be watched for changes. Thus, you need to restart your server in order to restart your WSGI application to make any changes visible. Does apply to changes in the Python code as well.

Regards, noisefloor
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question running Flask with waitress having web traffic log... SpongeB0B 2 5,792 May-06-2021, 07:07 AM
Last Post: SpongeB0B

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020