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.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
withhost_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...
Make sure all your GAE-java/python processes are shutted down before you fork new ones. It's very often that they stuck and consume processor time and memory after you hit CTRL+C.
[EDIT]
To disable updates run the server with
option.
[EDIT]
Open dev_appserver.cmd script from GAE SDK with your favorite text processor and manually add --disable_update_check option right after DevAppServerMain definition.
Next time you'll run an application from the GAE Launcher, it will start with "--disable_update_check" option automatically.
[EDIT]
For Python:
open python source code at
with your favorite text processor, find a 227-th line, it looks like
ARG_SKIP_SDK_UPDATE_CHECK: False,
and overwrite it with following:
Hope this helps.
As an update, the currently working option with
Google App Engine 1.9.19
is to edit the file~/.appcfg_nag
to make the following change.I found about this by consulting the
google_appengine/README:line 120