推送被拒绝,无法编译PHP(composer.json)应用程序

时间:2016-03-30 20:37:27

标签: php json git heroku

我试图将此应用推向Herokuhttps://github.com/seatgeek/build-artifacts 我有以下错误:

  

/ tmp / buildpack20160326-160-1njxwfv / bin / compile中的脚本错误或   近380线远程:远程:!推送拒绝,无法编译PHP   (composer.json)app

composer.json档案:

{
    "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": "info@joshlockhart.com",
            "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"
        }
    }
}

我还没找到/tmp文件夹。

1 个答案:

答案 0 :(得分:1)

这里有一些简单的步骤可以让它发挥作用 Heroku部署 步骤1: heroku buildpacks:设置heroku / php

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

为doicument root添加Procfile https://devcenter.heroku.com/articles/custom-php-settings#setting-the-document-root