Why does my app "fail to detect" a buildpack?


When you push your code to Heroku, the build fails with a message like "Failed to detect app matching no buildpack" or "Failed to detect app matching Node.js."


This error message means that Heroku was unable to automatically detect the type of app you're trying to deploy: Ruby, Node, Python, PHP, Java, etc. We look for signatures for each language we support (like a pom.xml file or package.json file).

Most apps have at least one of these signatures present, so if you see this error, it usually means an important file isn't checked into your git repository:

  • Java: pom.xml
  • Ruby: Gemfile
  • Node.js: package.json
  • Python: requirements.txt / setup.py / Pipfile
  • PHP: composer.json / index.php

You should git add {file}, git commit -am 'added {file}' and then git push heroku master.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support