尝试部署我的magento应用程序我发生此错误:但在localhost中工作
我真的不明白为什么,我不确定它与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/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。