Heroku:推送拒绝,无法编译PHP应用程序

尝试部署我的magento应用程序我发生此错误:但在localhost中工作

enter image description here

我真的不明白为什么,我不确定它与PHP buildpack有关.在此错误未出现之前,我具有与以前相同的配置.

这是我的composer.json文件

{
"name": "magento/project-community-edition",
"description": "eCommerce Platform for Growth (Community Edition)",
"type": "project",
"version": "2.1.1",
"license": [
    "OSL-3.0",
    "AFL-3.0"
],
"require": {
    "magento/product-community-edition": "2.1.1",
    "composer/composer": "@alpha"
},
"require-dev": {
    "PHPunit/PHPunit": "4.1.0",
    "squizlabs/PHP_codesniffer": "1.5.3",
    "PHPmd/PHPmd": "@stable",
    "pdepend/pdepend": "2.2.2",
    "fabpot/PHP-cs-fixer": "~1.2",
    "lusitanian/oauth": "~0.3 <=0.7.0",
    "sebastian/PHPcpd": "2.0.0"
},
"config": {
    "use-include-path": true
},
"autoload": {
    "psr-4": {
        "Magento\\Framework\\": "lib/internal/Magento/Framework/",
        "Magento\\Setup\\": "setup/src/Magento/Setup/",
        "Magento\\": "app/code/Magento/"
    },
    "psr-0": {
        "": "app/code/"
    },
    "files": [
        "app/etc/NonComposerComponentRegistration.PHP"
    ]
},
"autoload-dev": {
    "psr-4": {
        "Magento\\Sniffs\\": "dev/tests/static/framework/Magento/Sniffs/",
        "Magento\\Tools\\": "dev/tools/Magento/Tools/",
        "Magento\\Tools\\Sanity\\": "dev/build/publication/sanity/Magento/Tools/Sanity/",
        "Magento\\TestFramework\\inspection\\": "dev/tests/static/framework/Magento/TestFramework/inspection/",
        "Magento\\TestFramework\\Utility\\": "dev/tests/static/framework/Magento/TestFramework/Utility/"
    }
},
"minimum-stability": "alpha",
"prefer-stable": true,
"repositories": [
    {
        "type": "composer",
        "url": "https://repo.magento.com/"
    }
],
"extra": {
    "magento-force": "override"
}
}   

帮我解决这个问题.

解决方法:

试试这个

heroku create --buildpack https://github.com/heroku/heroku-buildpack-PHP --region eu

参考

https://chrisgrice.com/magento-on-heroku-part-1/

相关文章

developer-roadmap —— 提供最全的开发者技术路线指南。前端...
一个极简的文件分享工具,无需注册且没有广告即可生成共享下...
收集 Github、Gitee优秀的开源项目,并进行归类整理。项目地...
大家好,我是 Java陈序员,我们有时会搭建一个属于自己的网站...
一个提供交互式的Web UI用于生成兼容MyBatisPlus框架的相关功...
大家好,我是 Java 陈序员。权限认证是我们日常开发绕不过的...