是否有机会部署PHP应用程序抛出git推送?
我在主源中推送,可以在控制台-源码-浏览(和BitBucket)中看到源码,但是Releases是空的(流水线调整)。而且我找不到要调试git-deploy日志的地方。
但是..。在https://cloud.google.com/tools/repo/push-to-deploy#setting_up_a_release_pipeline中写道:“你可以在Java、Python和Go中的应用程序中使用一键部署。”
但在SOF GAE php app Push-to-Deploy failed中,它是有效的。我不明白真相在哪里)
总结一下,PHP-apps可以通过BitBucket推送部署吗?部署日志位于何处?
为大家提前道谢!
PS:这对于像c9.io这样的web-ide部署是非常必要的。
发布于 2015-02-10 09:18:37
在撰写本文时,您应该能够使用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存储库。
https://stackoverflow.com/questions/27904858
复制相似问题