저는 Heroku에 초보자입니다. 많은 비슷한 질문이 stackoverflow에서 요청되었지만 저에게 적합한 솔루션을 찾을 수 없었습니다.Heroku Laravel 4.2 Mcrypt PHP 확장이 필요합니다
remote: > php artisan clear-compiled
remote: Mcrypt PHP extension required.
remote: Script php artisan clear-compiled handling the post-install-cmd event returned with error code 1
remote: ! Push rejected, failed to compile PHP app.
내가 heroku run bash
명령을 Heroku가 환경에 연결을 시도하지만 루트 권한이 없기 때문에 Mcrypt 라이브러리 확장의 상태를 가져올 수 없습니다 : 내 laravel 4.2 응용 프로그램을 배포 할 때
나는 다음과 같은 문제를 얻고있다 나에게 부여.
또한 heroku buildpacks:set https://github.com/heroku/heroku-buildpack-php
을 빌드 팩으로 설정하려고 시도했습니다. 그러나 성공하지 못했습니다.
은 여기 내 composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.2.*"
},
"autoload": {
"classmap": [
"app/commands",
"app/library",
"app/controllers",
"app/models",
"app/Lib.php",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
]
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
어떤 도움이 많이 감사합니다.
질문을 편집하고 'composer.json'을 추가하십시오. – Chris
@ Chris, composer.json의 업데이트 된 질문 – meen