-
Notifications
You must be signed in to change notification settings - Fork 18
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
使用play 1.2.5.3/1.2.7,DEV模式下在LInux(CentOS 6.3)中不能增量编译模板文件,每次都全量编译模板。 #65
Comments
有没有一个样板工程我可以重现这个问题的? 有没有试过其他操作系统? 我手边没有CentOS。 我在苹果上。 是最近出现的这个问题还是一直有这个问题? 2013/12/19 王铁堂 [email protected]
|
还有你用的Japid 版本号是多少? 在 2013年12月19日 下午7:23,Bing Ran [email protected]写道:
|
以前是一直在windows7,没有出现过该问题,最近通过SFTP自动部署到CentOS 6.3远程调试发现每次刷新页面很慢,监控后台后发现每次都要重新编译所有模板,但在windows7下只是修改哪个文件就编译哪个文件,我试了japid0.9.37和0.9.31都有这个问题,但我怀疑是playframework的bug |
部署到 CentOS 后用的是 DEV mode?能不能在 Global 里面打开最高级的log: 在 2013年12月20日 下午1:12,王铁堂 [email protected]写道:
|
[Japid] classloader state not changed. Use cached auto-routes. 这是play1.2.5.3 官方版本,japid 0.9.37,已经执行过一遍编译,无任何编辑和修改,重新刷新页面后的日志 |
[Japid] classloader state not changed. Use cached auto-routes. 同样的play1.2.5.3 官方版本,japid 0.9.37,和同样的操作,在windows 7 下面的操作后的日志。 |
CentOS 6.3下启动时的日志: CompilerOracle: exclude jregex/Pretokenizer.next |
Window7下面的启动日志: CompilerOracle: exclude jregex/Pretokenizer.next |
确认一下 prod 模式没问题吧? 发自我的 iPad
|
能否看看同一个模版文件对应的java文件的时间戳?例如 login.html 对应的 login.java。java文件的时间戳应该晚于html 否则会被重新生成 发自我的 iPad
|
CentOS 6.3中,prod模式中,只在启动时编译一次,以后都正常. |
查看了,是时间戳的问题,服务器时间比本机时间晚十几分钟造成的: Access: 2013-12-20 15:51:16.741420204 +0800 谢谢! |
通过这个问题的引入,是否可以在比较login.html 对应的 login.java时,如果需要编译模板的同时,touch一下login.html ,这样就使login.html和 login.java的时间戳一直,从而避免这种远程调试时时间不同步的问题? |
或者缓存login.html 的最后修改时间,如果最后两次不一样再编译模板? |
很高兴问题解决了 我想想有无妥当的办法 发自我的 iPad
|
如题
The text was updated successfully, but these errors were encountered: