这是一个创建于 5204 天前的主题,其中的信息可能已经有所发展或是发生改变。
IDE用的是PyCharm 1.4.3,基于Tornado的一个项目,run以后修改的代码需要stop再run才可以生效,有没有自动重新加载的方法?
就是达到GAE官方手册里提到的效果:
as with the Python SDKyour app will be automatically re-built whenever you change the source.
每次来回停止开始停止开始,蛋疼。。。好低效。。
3 条回复 1970-01-01 08:00:00 +08:00  | | 1 zxp 2011-09-17 11:09:28 +08:00 settings = { "debug": True, }
app = tornado.web.Application([ ('/', MainHandler), ..... ], **settings) |
 | | 2 eraser 2011-09-17 11:24:58 +08:00 |
 | | 3 Livid 2011-09-17 12:09:25 +08:00 如果是在 Linux 上,那么还可以将你的 Tornado 应用通过 supervisord 做成一个守护进程,这样只要刷浏览器就可以了,程序肯定会在后台被持续启动。
在 Mac OS X 上的话,可以用 launchd。 |