• HOME
  • DOCS
  • WTF
  • TECH
  • LIFE
  • PAGES
    • ARCHIVE
    • TAGS
    • ABOUT
    • FRIENDS
    • RSS
  • TOOLS
    • GEO
    • RANDOM()
    • GOO.GL
    • CSS HEART
Aj's Blog

记录时间溜走的瞬间和折腾过的那些事

如何通过GAE+GoAgent搭建代理

2012-02-18  TECH  appengine  GAE  GoAgent  6  

本教程可能部分步骤需要“翻山越岭”才能完成。

本教程假设你为已经有了Google Account的WINDOWS用户。

1、开通GAE

使用Google Account登陆https://appengine.google.com/

创建App,使用默认设置即可。

2、下载GoAgent

https://github.com/phus/goagent/downloads

点击 “Download as zip”,解压到本地即可

3、Google Account应用程序专用验证码

参考上一篇文章:http://www.6zou.net/tech/how-to-google-smsauthconfig.html

4、配置GoAgent

(1)、gae appid修改

goagent下载解压后,找到 local 目录下 proxy.ini

修改 [gae] 段 appid=*** 部分 id为你第一步创建的id

(2)、上传python主程序到gae

点击server\upload.bat

按照提示设置

要注意的是这里使用的密码是 第三步中生成的应用程序专用验证码而不是Google Account登录密码

(3)、上传成功后查看 https://appengine.google.com/ 你刚才创建的app已经有了版本号 1

5、GoAgent代理的使用

打开主程序 local\goagent.exe,代理ip: 127.0.0.1 端口:8087

剩下的事,你懂得。。。

6、GoAgent搭建过程中常见错误

(1)、Python版本问题

典型提示“The ‘python27’ runtime is only supported for apps using the High Replication Datastore.”

这是老gae用户经常遇到的问题,gae升级过一次python版本,可以通过 禁用再启用/删除再重建 的方式开启High Replication

(2)、我确实只遇到这一个

有其他问题,google will tell you answer,也欢迎QQ来讨论 284508558,注明Goagent

GoAgent Running

下一篇:   Cakephp with iis: url rewrite issues
上一篇:   如何开启Google Account的两步验证
  • python27出问题 says:
    June 1, 2012 at 07:26

    “The ‘python27′ runtime is only supported for apps using the High Replication Datastore
    我就是遇到这个问题啊,想把它换成high replication datastore 类型的,但是duplicate application出错,说the developer does own the app id。想把应用删了重新建一个又建不了,说我的手机号已经验证过了,我都要绝望了,该怎么办啊,博主?

    Reply
    • Aj says:
      June 1, 2012 at 09:11

      不用删除 直接新建一个app即可

      Reply
      • Lee says:
        September 22, 2012 at 18:58

        我也遇到这个问题。
        我仍然想用原来的,也就是现在的这个appid

        求博主赐教啊

        Reply
        • Jason says:
          September 22, 2012 at 20:44

          切换到APP的管理,Administration \ Application Settings \ Disable or Delete Application

          Disable / Enable

          Reply
        • Lee says:
          September 22, 2012 at 23:30

          Jason:
          试过了,禁用仍然无法上传,或者删除version1
          因为version1是默认的。

          但又不能上传Python27的。

          无语了,Google为什么用这么麻烦的方法升级系统啊?

          Reply
          • Aj says:
            October 1, 2012 at 00:55

            想保留原来的ID就先禁用然后再启用,即可。

            如果你非得要删除,我记得说明里面提到需要等待协作开发的其他人员确认可以删除,即使你只是一个人用也要等待,具体等待多久我不记得了,
            gae有足够的免费app够你用,不用纠结这个。

            果断新建一个就是了。

  • Leave a Reply to Lee Cancel reply