AWS Elastic Beanstalk“composer install”无法找到包

时间:2013-08-21 16:32:38

标签: amazon-web-services laravel laravel-4 composer-php elastic-beanstalk

我正在使用git将Laravel应用程序部署到Elastic Beanstalk,但应用程序总是无法部署。我检查了日志,这是我得到的错误:

Problem 1
- The requested package laravel/framework could not be found in any version, there may be       a typo in the package name.
Problem 2
- The requested package laravelbook/ardent could not be found in any version, there may be a typo in the package name.
Problem 3
- The requested package machuga/authority-l4 could not be found in any version, there may  be a typo in the package name.
Problem 4
- The requested package way/generators could not be found in any version, there may be a typo in the package name.
Problem 5
- The requested package jonob/restful could not be found in any version, there may be a typo in the package name.
Problem 6
- The requested package intervention/image could not be found in any version, there may be a typo in the package name.
Problem 7
- cartalyst/api 1.0.x-dev requires illuminate/container 4.0.* -> no matching package found.
- cartalyst/api v1.0.0 requires illuminate/container 4.0.* -> no matching package found.
- Installation request for cartalyst/api 1.0.* -> satisfiable by cartalyst/api v1.0.0, cartalyst/api 1.0.x-dev.

这是我的composer.json文件:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"require": {
    "laravel/framework": "4.0.*",
        "laravelbook/ardent": "dev-master",
    "cartalyst/sentry": "2.0.*",
        "cartalyst/api": "1.0.*",
        "machuga/authority-l4" : "dev-master",
        "way/generators": "dev-master",
        "jonob/restful": "dev-master",
        "intervention/image": "dev-master"
},
"autoload": {
    "classmap": [
        "app/commands",
        "app/controllers",
        "app/models",
        "app/database/migrations",
        "app/database/seeds",
        "app/tests/TestCase.php"
    ]
},
"scripts": {
    "post-install-cmd": [
        "php artisan optimize"
    ],
    "pre-update-cmd": [
        "php artisan clear-compiled"
    ],
    "post-update-cmd": [
        "php artisan optimize"
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ]
},
"config": {
    "preferred-install": "dist"
},
    "repositories": [
    {
        "type": "composer",
        "url": "http://packages.cartalyst.com"
    }
    ],
"minimum-stability": "dev"
}

似乎找到了cartalyst包,所以也许我需要为其他包指定一个存储库?如果是这样,那个存储库会是什么?

1 个答案:

答案 0 :(得分:0)

我发现了问题所在。 composer.lock文件位于.gitignore中,因此AWS上的作曲家没有得到它...有关详细信息,请参阅此处:http://www.michaelgallego.fr/blog/2013/08/19/solving-the-elastic-beanstalk-composer-deployment-problems/