【问题标题】:Heroku issue while pushing code to the server将代码推送到服务器时出现 Heroku 问题
【发布时间】:2019-02-18 12:49:06
【问题描述】:

当您运行 git push heroku master 时。它显示错误,如下所示。我认为 git 不允许代码推送。

ubuntu@ubuntu14:/var/www/html/heroku/ssp/newone$ git push heroku master 计数对象:3,完成。 写入对象:100% (3/3),224 字节 | 0 字节/秒,完成。 总计 3(增量 0),重复使用 0(增量 0) 远程:压缩源文件...完成。 远程:构建源: 偏僻的: 偏僻的: !无法检测到此应用的默认语言。 远程:提示:当 Heroku 无法自动检测到用于此应用程序的 buildpack 时,会发生这种情况。 远程:见 https://devcenter.heroku.com/articles/buildpacks 偏僻的: 偏僻的: !推送失败 远程:验证部署... 偏僻的: 偏僻的: !推送被拒绝到 hidden-eyrie-58569。 偏僻的: 到 https://git.heroku.com/hidden-eyrie-58569.git ! [remote denied] master -> master (pre-receive hook denied) 错误:未能将一些参考推送到“https://git.heroku.com/hidden-eyrie-58569.git”

【问题讨论】:

标签: heroku deployment compiler-errors push heroku-cli


【解决方案1】:

感谢您给我这个想法。它适用于

heroku buildpacks:set heroku/php 

【讨论】:

    【解决方案2】:

    也许你忘了

    git add .
    git commit -m "your message"
    

    只有午餐

    git push heroku master
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-10-05
      • 2018-02-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多