GAE PHP Git Deploy

时间:2015-01-12 14:59:20

标签: php git google-app-engine

是否有机会部署PHP-app throw git push?

我确实推入master-origin,可以在Console-SourceCode-Browse(和BitBucket)中查看源代码,但Releases为空(管道调整)。 我无法找到git-deploy日志记录的调试位置。

但是......在https://cloud.google.com/tools/repo/push-to-deploy#setting_up_a_release_pipeline写的“你可以在Java,Python和Go中使用Push-to-Deploy与应用程序。”

但在SOF GAE php app Push-to-Deploy failed写道,它正在发挥作用。我不明白真相在哪里)

概要, 可以部署PHP应用程序抛出Git(BitBucket)推送吗? 部署日志位于何处?

提前感谢大家!

PS:从web-ide(如c9.io

)进行部署非常必要

1 个答案:

答案 0 :(得分:0)

在撰写本文时,您应该能够使用git部署您的应用引擎代码(我将它用于几个app-engine php项目)。

您可能遇到的一个常见错误是您的.yaml文件中存在错误。您仍然可以提交并推送您的更改,但您的部署将失败。

当我在cron.yaml文件中添加一些错误并尝试推送&部署

$ git push
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 336 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Storing objects: 100% (3/3), done.
remote: Processing commits: 100% (1/1), done.
remote: Triggering release (if applicable)...
remote: View results at:https://console.developers.google.com/project/.....(retracted)
remote: Running...
remote: Created deployment: appengineid.pipelines...(retracted)
remote: Dispatched
remote: Deployment failed. Details: Deployment failed, details: { Failed to load application, Line 3, column 26: Unable to find property 'alsdkjf;alksdfj  schedule' on class: com.google.apphosting.utils.config.CronYamlReader$CronYaml, none
To https://source.developers.google.com/p/AppEngineId/r/default
8190aea..2dc6945  master -> master

推送时应该能够看到类似的错误,或者您可能没有正确设置git存储库。