GAE初探-一鼻子灰

考虑到GAE可以一定条件下免费发布app,再加上之前有潜在客户需要用到GAE。

遂决定了解一番。

以比较熟悉的django作为切入点,

 

1. 首先安装 GAE-launcher,似乎没有太大问题

2. 用其生成一个app(非django项目,比较大白菜的架构)

3. 用其桌面版deploy,失败,貌似无法打开谷歌的网站。拜GFW所赐。

 

ok,试试通过命令行设置代理绕过,

set HTTP_PROXY = xxxxx

set HTTPS_PROXY=xxxxx

appcfg.py update your_app

 

失败,貌似是urllib2在window7下有bug。报以下错误:

...

File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 194, in connect

  self._tunnel()

File "C:\Program Files (x86)\Google\google_appengine\lib\fancy_urllib\fancy_urllib\__init__.py", line 137, in _tunnel

  (_, code, message) = response._read_status()

File "C:\Python27\lib\httplib.py", line 371, in _read_status

  raise BadStatusLine(line)

httplib.BadStatusLine: ''

  

 

补充说明下:python 2.7.6/ win7 旗舰版 64 bit

 

几番尝试,最后想在自己vps上尝试下,还是放弃了,硬盘空间有限唉。

 

====

/opt/google_cloud_sdk/google-cloud-sdk/bin/gcloud auth activate-service-account [email protected] --key-file /home/tommy/gae__cre/qweklidfa-bc4aa799df05.p12

 

http://stackoverflow.com/questions/19391252/how-to-obtain-a-private-key-for-a-legacy-google-app-engine-project

 

http://stackoverflow.com/questions/25066461/how-to-get-gcloud-auth-activate-service-account-persist

 

https://cloud.google.com/appengine/docs/python/tools/uploadinganapp#Python_Using_an_HTTP_proxy

 

你可能感兴趣的:(GAE)