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

 张琪健V 发布于 2022-11-12 12:12

$ 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'

1 个回答
  • 看错误应该是提交代码后触发hook时,配置的钩子检查代码或者发布代码失败了然后就给拒绝了,估计代码有问题,本地先构建一下看看能不能正常构建再提交

    2022-11-12 15:44 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有