Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
executable file 29 lines (22 sloc) 984 Bytes
#!/usr/bin/env bash
# convenience functions
source "$(cd $(dirname $0); cd ..; pwd)"/bin/util/
if [[ -f "$1/composer.json" || -f "$1/index.php" ]]; then
echo "PHP" && exit 0
error <<-EOF
Application not supported by this buildpack!
The 'heroku/php' buildpack is set on this application, but was
unable to detect a PHP codebase.
A PHP app on Heroku requires a 'composer.json' at the root of
the directory structure, or an 'index.php' for legacy behavior.
If you are trying to deploy a PHP application, ensure that one
of these files is present at the top level directory.
If you are trying to deploy an application written in another
language, you need to change the list of buildpacks set on your
Heroku app using the 'heroku buildpacks' command.
For more information, refer to the following documentation: