Google App Engine Java 是否支持 Eclipse 中的热部署?
默认情况下它似乎并没有这样做,考虑到他们为简化开发而设置的所有其他内容,这对我来说非常令人震惊。 有没有办法启用此功能? 如果没有,有人知道为什么不支持它吗?
It doesn't seem to do this by default, which is pretty shocking to me given all the other stuff they've set up to make development easy. Is there a way to enable this? If not, anybody know why it isn't supported?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
JRebel 可以帮助您解决这个问题 http:// englove.blogspot.com/2010/09/appengine-hot-deploy-on-mac.html
但是使用 JRebel 我在开发模式下使用 GWT 时遇到了麻烦。
但是,有一种更简单的方法可以做到这一点。 如果您在 Eclipse 中调试应用程序,则可以热部署服务器类。
调试为-> Web 应用程序
这就是全部! :)
There is JRebel that can help you with this http://englove.blogspot.com/2010/09/appengine-hot-deploy-on-mac.html
But using JRebel i had troubles with GWT in Development Mode.
BUt, there is a simplier way to do it. You can have hot deploy of your server clases if you debug your application in Eclipse.
Debug As -> Web Application
That's all! :)
这是 App Engine 问题跟踪器上的开放功能请求 。 你应该在那里投票。
FWIW,它确实可以按预期与 JSP 一起使用(当您更新它们时,它们会失效并重新编译)。
This is an open feature request on the App Engine Issue Tracker. You should vote on it there.
FWIW, it does work with JSP as expected (they get invalidated and recompiled when you update them).
我意识到当我修改并保存
appengine-web.xml
文件时,本地服务器会重新加载,因此我使用此说明创建了一个build.xml
文件并从运行eclipse+ant
,所以我有一个热部署I realized that local server reloads when I modify and save the
appengine-web.xml
file, so i created abuild.xml
file with this instructions and runs fromeclipse+ant
, so I have a hot deploy我使用 App Engine 1.9.2,它已经可以运行,不仅适用于 JSP,还适用于 Servlet 和 Java 代码。
如果您的项目是基于 Maven 的,并且您使用
mvn appengine:devserver
启动服务器,则修改一些代码后,您需要做的就是在浏览器中刷新页面。
I work with App Engine 1.9.2, and it is already working not only for JSPs, but Servlets and Java code as well.
If your project is Maven-based, and you start your server with
mvn appengine:devserver
, after modifying some code, all you need to do isand refresh the page in your browser.