向新浪云服务器git代码的时候出现这种错误

$ git push sae master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 571 bytes | 0 bytes/s, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: 导出 Git 代码中...
remote: 构建程序中...
-----> Unable to select a buildpack
remote: {"Code":1,"Error":"build image failed: exit status 1."}
remote: 错误:构建镜像失败
remote: error: hook declined to update refs/heads/master
To https://git.sinacloud.com/wwy...
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'https://git.sinacloud.com/wechat'

泛舟湖上清波郎朗
浏览 1995回答 1
1回答

慕慕森

看错误应该是提交代码后触发hook时,配置的钩子检查代码或者发布代码失败了然后就给拒绝了,估计代码有问题,本地先构建一下看看能不能正常构建再提交
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript