天朝使用 GAE 入门指南

警告

这篇文章内容可能已经过时。

引言

Across the Great Wall, we can reach every corner in the world.

洒家最近玩了几下 Google App Engine。由于众所周知的原因,天朝恶劣的网络环境十分影响程序猿的生产活动。另外,GAE 对新手来说需要摸索和练习才能掌握,洒家决定写上几笔。

以下是洒家的一点提示。

正文

代码的部署方式

Google App Engine 没有(洒家没有找到)网页版的上传代码方式,洒家唯一知道的上传代码方式是用 Google App Engine SDK Launcher 中的 Deploy 选项。

首先需要下载(当然需要科学上网)Google App Engine SDK,并安装。

gae-usage-1.png
安装 Windows 版 Google App Engine SDK

安装完毕后,暴露一个坑点:由于众所周知的原因,在恶劣的网络环境上传代码需要科学上网法。Google App Engine SDK 使用 Python 编写,此时想科学上网代理服务器已经不好用,最好使用 VPN。

gae-usage-2.png
某 VPN 软件

以部署一个已存在的项目为例,添加项目:

GAE add existing app

当然,需要在 app.yaml 文件中正确填写应用唯一名称。

点击 Deploy。如果没有认证过需要 oauth:

Google oauth

访问网站

由于众所周知的原因,appspot.com 也被墙了,如果访客没有科学上网的手段,只好用某反向代理网站:

举个例子:

GAE reverse proxy

总结

Google App Engine 在天朝已经基本无法让人痛快使用,洒家建议公开网站放弃这一平台,老老实实在国内备案。

天朝物产丰盈,无所不有,原不籍外夷货物以通有无。


Comments

您可以匿名发表评论,无需登录 Disqus 账号,勾选“我更想匿名评论”后,姓名和电子邮件分别填写“匿名”和“someone@example.com”然后发表评论即可。您也可以登录 Disqus 账号后发表评论。您的评论可能需要经过我审核后才能显示。点赞投票按钮(Reactions)无需登录即可点击。Disqus 评论系统在中国大陆可能无法正常加载和使用。

Statements

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License

本作品采用知识共享署名—非商业性使用—禁止演绎 4.0 许可协议国际版(CC BY-NC-ND 4.0)进行许可。

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0).

Written by a Human, Not by AI

本作品由人类创作,整体内容符合 Not By AI 90% 规则。人工智能工具仅在有限程度上提供灵感启发、错别字与语法检查,以及在不改变原意的前提下进行润色。所有修改在采纳前均经过作者仔细审阅。

This work was created by a human author, and the overall content complies with the Not By AI 90% Rule. Artificial intelligence tools were used only to a limited extent for idea inspiration, typo and grammar checking, and stylistic refinement without altering the original meaning. All modifications were carefully reviewed by the author before adoption.

Top