heroku push rejected no cedar-supported app detected php - index.php present -


i trying push php app heroku , below error.

heroku receiving push ! heroku push rejected, no cedar-supported app detected.

i have read through previous posts said php app should have index.php in root folder...which do. when "git ls-files" index.php listed (with name in lowercase).

steps have performed far are. 1. have application created on heroku - stack:cedar 2. git add relevant files 3. git commit comment 4. git push heroku master -- guy gives me error.

git ls-files lists file "index.php".

what missing time?

i'm starting out heroku , encountering same problem. below description of did wrong.

procfile

make sure following statement included in procfile:

web: vendor/bin/heroku-php-apache2 path/to/web/ 

where path/to/web/ relative path directory want publicly expose on web. make sure public directory contains index.php file (e.g. path/to/web/index.php).

composer.json

in composer.json directory (which should in base directory of repository) make sure include heroku php buildpack.

{   "require": {    },   "require-dev": {     "heroku/heroku-buildpack-php": "*"   } } 

if statement missing, run composer update (./composer.phar update me, because downloaded composer , placed in base directory of repository) composer fetch package , install vendor directory.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -