forked from heroku/heroku-buildpack-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request heroku#291 from heroku/develop
v141
- Loading branch information
Showing
17 changed files
with
141 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
# convenience functions | ||
source "$(cd $(dirname $0); cd ..; pwd)"/bin/util/common.sh | ||
|
||
if [[ -f "$1/composer.json" || -f "$1/index.php" ]]; then | ||
echo "PHP" && exit 0 | ||
else | ||
exit 1 | ||
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: | ||
https://devcenter.heroku.com/articles/buildpacks | ||
https://devcenter.heroku.com/articles/php-support#activation | ||
EOF | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.