-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement a better reloader #29
Comments
Justin has suggested a reloader that restarts the process on code changes. http://groups.google.com/group/webpy/browse_thread/thread/10e255e2511741b2 caveat: doesn't work on windows |
Reloading the whole process is slow; maybe just have some way to protect global state? |
http://webpy.org/cookbook/session_with_reloader It seemed that web.config can be used to store global states. It would be better if web.py can handle session with reloader automatically. |
FWIW, we store most of our global state in a file called I agree that restarting the whole process is slow. We aggressively cache things in Python objects on startup -- our server takes about 4GB of RAM and a few minutes to start up, so fast reload is very important to us. :-) |
If the reloader would work with sessions, that would be grand! |
It also desn't check canges on modules imported by unchanged modules. |
having same issue as @gabrii |
The current reloader tries to reload modules, it doesn't work well if there is some global state. Things like sessions etc. are not working with the reloader.
We need a new reloader that restarts the whole process when it detects file changes.
The text was updated successfully, but these errors were encountered: