简体   繁体   中英

`git push heroku master` returns error

I am trying to create a simple project on Heroku by pushing a git which contains only a php ('Hello World') file, am empty README file and an empty json file.

When I enter git push heroku master in the terminal to do this I (partly) get the following response:

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'

Because of this I cannot properly run any new Heroku app (which may include only a php 'Hello World' file).

This error was presented suddenly after I have already used successfully git push heroku master for dozens of heroku apps (the same day). Actually, this error was presented to me also when I tried to edit an app which was already running properly.

How can I fix this?

I am pretty sure that I was affected by deployment failures occurring on Heroku itself and it was not anything about what I did which caused this error.

When something goes wrong I tend to think that I am doing something wrong but sometimes it may be that something wrong is occurring at the other side of my computer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM