我刚跑了#34;作曲家更新"在我的生产服务器上,并收到此错误:
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
当我尝试任何" php artisan"命令,我没有收到任何结果。
我尝试删除我的composer.lock文件和我的供应商文件夹,然后运行" composer install"再次,但没有结果。
这是我的composer.json文件:
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "4.2.*",
"bllim/laravalid": "dev-laravel4",
"facebook/php-sdk-v4" : "~5.0"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/composers",
"app/models",
"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"
}
我的生产服务器运行PHP 5.6和Apache 2.4。
答案 0 :(得分:2)
我通过以下步骤解决了这个问题: