GAE - Eclipse中的开发服务器不更新? [英] GAE - Development server in Eclipse doesn't update?

查看:204
本文介绍了GAE - Eclipse中的开发服务器不更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse上使用Google AppEngine开发服务器。我的本地网页似乎没有更新,直到我在开发服务器上进行了一些重新启动(使用Eclipse中的运行或调试按钮)。



我是什么做错了?



基本流程是:




  • 更改为.java文件...

  • 保存文件

  • 运行应用程序(开发服务器在控制台中加载日志显示)

  • 在浏览器中刷新网页



PS:我可以让它工作的唯一方法是更改服务器端口...如果我这样做,所有以前的服务器仍然显示在它们各自的端口。他们永远不会停止。

解决方案

您需要重新启动服务器才能查看大部分代码更改。最简单的方法是使用GAE窗格中显示的黄色重新加载按钮,而不是控制台,但有一个点击此处启动地址。



如果您在eclipse中使用debug / run命令,则需要明确地停止以前的运行。您可以从调试菜单(停止按钮)或GAE窗格或控制台窗格中执行此操作。



此后您不需要更改端口 - 你现在必须做的一件事是,第一个实例仍在运行,占用了端口。一旦你停止了,你可以在同一个端口再次运行它...你的代码更改! :)


I'm using the Google AppEngine development server on Eclipse. My local webpage just doesn't seem to update until I do a number of restarts on the Development Server (using the Run or Debug buttons from Eclipse).

What am I doing wrong ?

The basic flow is:

  • Make change to .java file...
  • Save file
  • Run application (development server loading log shows in console)
  • Refresh web page in browser

P.S: The only way I can get it to work is to change the server port... and if I do that all the previous servers still show at their respective ports. They never stop.

解决方案

You do need to restart the server to see most code changes you'll make. The easiest way to do this is with the yellow reload button that appears on the GAE pane - not the console, but the one that has the fancy "click here to launch" addresses.

If you do use the debug / run commands in eclipse, you will need to explicitly stop the previous run. You can do this from the debug menu (the stop button) or from the GAE pane or from the console pane.

You won't need to change the ports after this - the reason you have to do it now is that the first instance is still running, hogging the port. Once you stop it you'll be able to run it again on the same port... WITH your code changes! :)

这篇关于GAE - Eclipse中的开发服务器不更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆