[PYTHON] Articles to see if rejected when git push heroku master on Heroku

What to do when rejected after git push on heroku

I'm new to git, but when I try to use heroku and push it, it says rejected and I see this article when I don't know what's wrong.

Comments and likes are welcome. It would be helpful if you could point out any typographical errors or mistakes.

Where is the cause of reject written?

Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 8 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 212 bytes | 212.00 KiB/s, done.
Total 2 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote:        More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !	Push rejected to project.
remote: 
To https://git.heroku.com/project.git
 ![remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/project.git'

For example, in this example, the one in the middle

App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz

This sentence is the content of the error

From here, we will look at each type of error based on this.

App not compatible with buildpack No default language could be detected for this app. These two messages say that heroku "I don't know what language and what dependencies it has."

In this case, it is necessary to place a file with a file name determined for each language in the root directory of the repository. Dependencies are described in that file. Place an empty file even if it is empty.

Required files for each language

PHP composer.json Node.js package.json Ruby Gemfile Python requirements.txt Go A directory containing one or more .go files named Godeps / Godeps.json or vendor / vendor.json or src Scala A file named /project/build.properties with the sbt.version property java pom.xml Clojure project.clj

non-fast-forward It appears when the previously pushed content and the git history do not match. Forcibly if you don't mind

git push heroku master -f

request runtime not available Make sure runtime.txt is in the root directory Try another version as the runtime specified in runtime.txt may not be supported

reference https://devcenter.heroku.com/categories/language-support

Recommended Posts

Articles to see if rejected when git push heroku master on Heroku
Push rejected, failed to compile Go app. Error when deploying Go to Heroku
Solution if you crash when using selenium on heroku
Articles to see when installation for Python + OpenCV fails
I get [Error 2055] when trying to connect to MySQL on Heroku
What to do if package installation fails when deploying to heroku
The record I was addicted to when putting MeCab on Heroku
How to run matplotlib on heroku
Review from git init to git push