Error deploy App Laravel 5 in Heroku

0

When executing the $git push heroku master command it throws me the following error:

[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Way\Generators\GeneratorsServiceProvider' not found

I followed all the steps of installing the library link and I have no problems locally.

Here is my composer.json:

{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
    "php": ">=5.5.9",
    "laravel/framework": "5.1.*",
    "laravelcollective/html": "5.1.*"
},
"require-dev": {
    "fzaninotto/faker": "~1.4",
    "mockery/mockery": "0.9.*",
    "phpunit/phpunit": "~4.0",
    "phpspec/phpspec": "~2.1",
    "xethron/migrations-generator": "dev-l5",
    "way/generators": "dev-feature/laravel-five-stable",
    "barryvdh/laravel-ide-helper": "^2.2",
    "doctrine/dbal": "v2.5.4"
},
"autoload": {
    "classmap": [
        "database"
    ],
    "psr-4": {
        "App\": "app/"
    }
},
"autoload-dev": {
    "classmap": [
        "tests/TestCase.php"
    ]
},
"scripts": {
    "post-root-package-install": [
        "php -r \"copy('.env.example', '.env');\""
    ],
    "post-create-project-cmd": [
        "php artisan key:generate"
    ],
    "post-install-cmd": [
        "Illuminate\Foundation\ComposerScripts::postInstall",
        "php artisan optimize"
    ],
    "post-update-cmd": [
        "Illuminate\Foundation\ComposerScripts::postUpdate",
        "php artisan optimize"
    ]
},
"config": {
    "preferred-install": "dist"
},
"repositories": {
    "repo-name": {
        "type": "git",
        "url": "[email protected]:jamisonvalenta/Laravel-4-Generators.git"
    }
}
}
    
asked by mlazos 09.09.2016 в 22:36
source

1 answer

0

The error is because you have the package in require-dev , add it in require and you're done. By default Heroku does the deploy in production mode and composer will not install any package of require-dev

We must remember that what we add in require-dev are packages that are not necessary for the project to work, but for its development, therefore they should not be included in the version of production of the project.

As a final note, you can check the logs of your deployments in Heroku in: overview / view build log and it will show you all the packages that were installed

    
answered by 11.12.2016 / 22:04
source