Skip to content

How to get autoreload work #8

@kellytrinh

Description

@kellytrinh

Hi Todd,

Found your package when google searching for a simple webhook server. Its great - simple for a beginner at python like me.

Could I get some help tho - I see there is a 'autoreload' and it suggests that I can edit the source code and have the changes reflect on the server immediately (that's great for developing/debugging).

However, it does not seem to be working. When I set logScreen and autoReload to true; I get the output below. It seems to suggest that the file change notification is received but after the webserver is shutdown; it doesn't come back up again.

Am I missing a step?

[15/Jul/2020:12:37:18] ENGINE Bus STARTING
Still alive...
[15/Jul/2020:12:37:18] ENGINE Started monitor thread 'Autoreloader'.
[15/Jul/2020:12:37:18] ENGINE Serving on http://0.0.0.0:8090
[15/Jul/2020:12:37:18] ENGINE Bus STARTED
Received request:
[[[details of request elided ]]]
192.168.0.100 - - [15/Jul/2020:12:37:19] "POST /webhook-serrer HTTP/1.1" 200 2 "" "curl/7.58.0"
[15/Jul/2020:12:37:26] ENGINE Restarting because /home/kelly/system/testing/webserver.py changed.
[15/Jul/2020:12:37:26] ENGINE Stopped thread 'Autoreloader'.
[15/Jul/2020:12:37:26] ENGINE Bus STOPPING
[15/Jul/2020:12:37:26] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8090)) shut down
[15/Jul/2020:12:37:26] ENGINE Bus STOPPED
[15/Jul/2020:12:37:26] ENGINE Bus EXITING
[15/Jul/2020:12:37:26] ENGINE Bus EXITED
Still alive...

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions