lundi 16 juillet 2018

can't create directory with ebextension commands

I'm trying to deploy via Jenkins a Laravel application and I'm getting this error:

Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover

In PackageManifest.php line 165:
  The /var/app/ondeck/bootstrap/cache directory must be present and writable.  

So I'm trying to create this directory via ebextension command file, just like this:

commands:

    01directories:
        command: "mkdir -p bootstrap/cache"
        cwd: "/var/app/ondeck"

    02directories:
        command: "chmod -R 777 bootstrap/cache"
        cwd: "/var/app/ondeck"

    03directories:
        command: "chmod -R 777 storage"
        cwd: "/var/app/ondeck"

But the error persists. It looks the mkdir command is not working.

Am I doing something wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire