How can I disable the automatic checking for updates when Google App Engine Launcher is started?

后端 未结 3 1813
囚心锁ツ
囚心锁ツ 2020-12-29 12:29

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 applica

3条回答
  •  无人及你
    2020-12-29 13:07

    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

    --disable_update_check
    

    option.

    Usage: [options]


    [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.

    java -cp "%~dp0\..\lib\appengine-tools-api.jar" ^
    com.google.appengine.tools.KickStart ^
       com.google.appengine.tools.development.DevAppServerMain --disable_update_check %*
    

    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

    [GAE_SDK_PY]/google/appengine/tools/dev_appserver_main.py

    with your favorite text processor, find a 227-th line, it looks like

    ARG_SKIP_SDK_UPDATE_CHECK: False,

    and overwrite it with following:

      ARG_SKIP_SDK_UPDATE_CHECK: True, 
    

    Hope this helps.

提交回复
热议问题