0

我正在使用 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 包,所以也许我需要为其他包指定一个存储库?如果是这样,该存储库将是什么?

4

1 回答 1

0

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

于 2013-08-22T15:58:53.507 回答