web.config.debug=True
if __name__ == "__main__":
app = web.application(urls, globals())
app.run()
debug打開會,只要修改完檔案他就會幫你autoreload了
webpy猫腻之web.application with autoreload - Jerry.Kwan - 博客园
http://www.cnblogs.com/Jerryshome/archive/2012/03/02/2377361.html
python - Webpy: how to auto reload source code when it changed? - Stack Overflow
http://stackoverflow.com/questions/6783889/webpy-how-to-auto-reload-source-code-when-it-changed
沒有留言:
張貼留言