2016-12-02 75 views
4

嘗試部署我的Magento應用程序我有這個錯誤發生:但在本地主機工作的Heroku:按下拒絕,無法編譯PHP應用

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" 
} 
} 

幫助我理清這個問題。

回答

2

確保將auth.json放置在magento根目錄中,並確保auth.json鍵正確放置。

+0

謝謝放在根目錄。更改錯誤後清除。 –

相關問題