我考虑将我的php Google App Engine项目从Codenvy移到Google Source Repository并使用Source Editor进行编辑,但我不知道如何让它部署我的项目。我该怎么做?
答案 0 :(得分:0)
这里有什么对我有用,通过猜测,试用,错误,Billy找到,只有一些文档。
我已将GC存储库设置为a repository which is a mirror to bitbucket,自动命名为default
。注意:以下gcloud
的{{1}}无法识别重命名获得该名称的存储库。可以mistake a non-existent repository for an empty one。
更新:现在,在更新bitbucket源之后,部署的应用程序不显示更新,尽管"部署成功"] 4。我不知道为什么 - 也许due to version number。解决方法:使用配方2。
1确保项目的app.yaml文件包含default
和application:
,例如此
2转到Google Cloud Patform和select the project
3点击version:
http://i.imgur.com/Axjy17q.png
4在Google Cloud Shell中,输入:
Activate Google Cloud Shell
部署需要20秒左右才能完成。
1确保项目的app.yaml文件不包含gcloud source repos clone default
appcfg.py update default
rm -rf default
或application:
(否则您将获得error like this)例如this
2转到Google Cloud Patform和select the project
3单击“激活Google Cloud Shell http://i.imgur.com/Axjy17q.png
”4在Google Cloud Shell中输入:
version:
警告:这可以leave a previous version accessible。
这需要大约65秒才能完成。
重新计时,比较this,需要20秒左右。时间安排用于Hello World项目。