`git push heroku master`返回错误

时间:2018-03-20 14:09:14

标签: php git heroku

我试图通过推送一个只包含一个php('Hello World')文件的git来创建一个关于Heroku的简单项目,该文件是空的README文件和一个空的json文件。

当我在终端中输入git push heroku master来执行此操作时,我(部分)会得到以下回复:

remote:  !     Push failed due to an unrecognized error, and we've been notified.
remote: 
remote:  !     Please try pushing again.
remote:  !     If the problem persists, see http://help.heroku.com/ and provide Request ID *my_project_id*.
remote: 
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to *my_project_name*.
remote: 
To https://git.heroku.com/*my_project_name*.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/*my_project_name*.git'

因此我无法正常运行任何新的Heroku应用程序(可能只包含一个php'Hello World'文件)。

在我已成功使用git push heroku master数十个heroku应用程序(同一天)后,此错误突然显示。 实际上,当我尝试编辑已经正常运行的应用程序时,也会向我显示此错误。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:1)

我很确定我受到了Heroku本身发生的部署失败的影响,而且我所做的并不是什么导致了这个错误。

当出现问题时,我倾向于认为我做错了,但有时可能是我的电脑另一边出现了错误。

相关问题