Search code examples
githerokubuildpack

Push rejected, failed to detect set buildpack git://github.com/CHH/heroku-buildpack-php


I would like to push a new app to Heroku using git push heroku master.

After successful authentication have got following error.

remote: Building source: remote: remote: -----> Fetching set buildpack
git://github.com/CHH/heroku-buildpack-php... done remote:

remote: !Push rejected, failed to detect set buildpack
git://github.com/CHH/heroku-buildpack-php

detect file:

#!/bin/bash

if [ -f "$1/composer.lock" ]; then
    echo "PHP (composer.json)" && exit 0
elif [ -f "$1/index.php" ]; then
    echo "PHP (classic)" && exit 0
else
    exit 1
fi

Solution

  • This buildback is deprecated, you should use official Heroku buildpack instead.