plaidshirt
plaidshirt

Reputation: 5671

Push rejected, failed to compile PHP (composer.json) app

I have tried to push this app to Heroku: https://github.com/seatgeek/build-artifacts I have got following error:

Script error in /tmp/buildpack20160326-160-1njxwfv/bin/compile on or near line 380 remote: remote: ! Push rejected, failed to compile PHP (composer.json) app

composer.json file:

{
    "name": "slim/slim-skeleton",
    "description": "A Slim Framework skeleton application for rapid development",
    "keywords": ["microframework","rest","router"],
    "homepage": "http://github.com/codeguy/Slim-Skeleton",
    "license": "MIT",
    "authors": [
        {
            "name": "Josh Lockhart",
            "email": "[email protected]",
            "homepage": "http://www.joshlockhart.com/"
        }
    ],
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/tuupola/slim-fake-mcrypt.git"
        }
    ],
    "require": {
        "php": ">=5.3.0",
        "monolog/monolog": "~1.6",
        "tuupola/slim-fake-mcrypt": "dev-master",
        "slim/slim": "~2.3",
        "slim/views": "0.*",
        "twig/twig": "~1.13",
        "ruflin/elastica": "v0.90.2.0",
        "knplabs/github-api": "*"
    },
    "extra": {
        "heroku": {
            "framework": "slim",
            "document-root": "public",
            "index-document": "index.php"
        }
    }
}

I haven't found /tmp folder.

Upvotes: 1

Views: 2315

Answers (1)

user2083068
user2083068

Reputation: 51

here some simple step to make it work Heroku deploy Step 1: heroku buildpacks:set heroku/php

git add composer.json composer.lock git push heroku master

Add Procfile for doicument root https://devcenter.heroku.com/articles/custom-php-settings#setting-the-document-root

Upvotes: 1

Related Questions