Google App Engine启动器启动时,如何禁用自动检查更新? [英] How can I disable the automatic checking for updates when Google App Engine Launcher is started?

查看:142
本文介绍了Google App Engine启动器启动时,如何禁用自动检查更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在修改GAE,并且我喜欢Windows SDK可用的GAE Launcher。



我的问题是,当我启动应用程序,它需要很长时间才能变得快速响应。这是因为程序首先在启动应用程序之前检查更新。这会导致它挂起,而它正在等待响应。我的问题是我的主要开发机器在代理服务器后面,GAE启动器被代理阻止。



当我启动启动器时,是否有办法禁用GAE更新检查?也许一个命令,我可以通过我的快捷方式传递给底层的可执行文件?

解决方案

Google App Engine(GAE)使用python <一个href =http://docs.python.org/library/urllib2.html> urllib2 库来检查更新。该库从 * _ proxy 环境变量而不是Windows注册表获取代理设置。


默认情况下,ProxyHandler使用名为< scheme> _proxy的环境变量,其中< scheme>是涉及的URL方案。例如,读取http_proxy环境变量以获取HTTP代理的URL。

如果您需要使用代理并且不需要如果你正确地定义了这个变量,你的GAE启动器将锁定,直到连接超时,延迟程序的启动。

如果你创建一个新的环境变量叫做 http_proxy with host_or_ip:port ,GAE启动器将立即开始。



要定义环境变量,请转到:控制面板 - >系统和安全 - >系统 - >高级系统设置 - >高级选项卡 - >环境变量...


I've been tinkering with the GAE and I enjoy the ease of use of the GAE Launcher that is available with the Windows SDK.

My problem is that when I start the application, it takes it a long time for it to become responsive. This is because the program first checks for updates before starting the app. This causes it to hang, while it's waiting for a response. My problem is that my primary dev machine is behind a proxy server, and the GAE Launcher is being blocked by the proxy.

Is there a way that I can disable the check for updates to the GAE when I start the launcher? Maybe a command that I can pass to the underlying executable through my shortcut?

解决方案

Google App Engine (GAE) use the python urllib2 library to check for updates. This library gets the proxy settings from *_proxy environment variables, instead of the windows registry.

By default, ProxyHandler uses the environment variables named <scheme>_proxy, where <scheme> is the URL scheme involved. For example, the http_proxy environment variable is read to obtain the HTTP proxy’s URL.

If you need to use a proxy and don't have this variable properly defined, your GAE Launcher will lock until a connection timeout, delaying the start of the program.

If you create a new environment variable called http_proxy with host_or_ip:port, GAE Launcher will start in a blink of an eye.

To define an environment variable, go to: Control Panel -> System and Security -> System -> Advanced system settings -> Advanced Tab -> Environment Variables...

这篇关于Google App Engine启动器启动时,如何禁用自动检查更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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