![](/img/trans.png)
[英]git push heroku master errror. Failed to compile php app. could not parse composer.json
[英]Push rejected, failed to compile PHP (composer.json) app
我試圖將這個應用程序推送到Heroku
: https : //github.com/seatgeek/build-artifacts我遇到以下錯誤:
/ tmp / buildpack20160326-160-1njxwfv / bin /在380行或附近的腳本錯誤遠程:遠程:! 推送被拒絕,無法編譯PHP(composer.json)應用
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
文件夾。
這是使其易於使用的一些簡單步驟Heroku部署步驟1:heroku buildpacks:設置heroku / php
git add composer.json composer.lock git推送heroku master
為文檔根目錄添加Procfile https://devcenter.heroku.com/articles/custom-php-settings#setting-the-document-root
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.