I thought that I would like to publish a portfolio site created with php (using MySQL, phpMyAdmin, MAMP) on Heroku, and it was smooth until I created an application and connected it to Github. However, when the application file connected with Github is "Deploy branch" with "Manual deploy", the following error message appears and it is stuck. (All operations are on the browser.)
I was proceeding while referring to the following article.
heroku beginner-try deploying from GitHub-
----->App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/php.tgz
! ERROR: 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 i am trying to deploy a PHP application, ensure that one
of these files is present at the top level directory.
!
! If i am 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
More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
! Push failed
When you read the error text, you need a "composer.json" file to publish a site created with php on Heroku. I put it in.
{
"require": {
"php": "~ 7.0",
"ext-mbstring": "*"
}
}
The "index.php" file is included.
I tried to deploy again after doing the above, but I still get the same error.
Is there anything else I need?
I'm new to Heroku and I'm not sure how to deal with it.
-
Answer # 1
Related articles
- when i edit a js file in a php app that does not use fw and deploy it on heroku, it is not reflected
- php - [deploy laravel heroku] i want to resolve the error of target class [app \ http \ controllers \ issuecontroller] does not
- php - i want to deploy lp from github to heroku
- github - i can't deploy to heroku anymore
- i want to deploy on heroku
- ruby - heroku deploy error
- i want to hide the extension (html and php) of the url of the application displayed by heroku and vagrant i want to know how to
- ruby - rails heroku deploy error
- ruby on rails - cannot deploy to heroku
- php - i don't know the cause of the 505 error on heroku
- php - when i try to upload an image to aws s3 from an app published on heroku, an error is displayed
- python - can't deploy to heroku
- i want to deploy using heroku mysql
- mysql - cannot deploy with heroku
- ruby on rails - deploy to heroku
- heroku - suddenly i could not deploy the nodejs code
- python - deploy to heroku fails with docker + django configuration
- mysql - deploy ruby app to heroku
- css - how to publish your portfolio online
- php - [heroku] when i try to migrate to heroku, i get the following error and am in trouble [laravel]
- javascript : loading image via ajax
- php : How to identify the creator of a conversation via the VK API?
- php : Why does clicking on the Like button not immediately display the increment (+1) on the page? But only, after the reboot
- php : Tell me how to write the array correctly?
- How can I perform operations only on numeric or string values when the depth of the hierarchy and key names are different each
- php : Explode doesn't work
- php : There is a time difference when displaying the time obtained from the database. I want to display it in Japan time when de
- php : json_decode () expects parameter 1 to be string, array given in
- How to parse JSON to PHP POST
- php : JSON message encoding
How to publish your own app for free using Heroku
It was solved when I read this article.