我花了几个小时才发现这个thread,但解决方案并没有帮助我 .
我的设置
-
Laravel PHP信息应用程序与phpinfo视图,没有额外的
-
Bitbucket Cloud与Heroku管道
-
Heroku app相应配置
The problem is ,当我将更改推送到Bitbucket时,这些是 then pushed to Heroku , git command is not found .
请参阅我的 bitbucket-pipelines.yml
链接到pastebin .
当管道步骤“Deploy to Heroku”运行时,它会中止说
+ git push
https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_APP_NAME.git HEAD
bash: git: command not found
在构建设置中,git的安装成功完成 . 见screenshot .
为什么git命令失败了?
提前致谢!
1 回答
失败的原因是,在第二步中没有安装git组件 .
请在下面找到更正的版本 .