【发布时间】:2018-12-24 12:55:30
【问题描述】:
我正在尝试通过 Jenkins 部署 Laravel 应用程序,但出现此错误:
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.
所以我尝试通过 ebextension 命令文件创建这个目录,就像这样:
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"
但错误仍然存在。看起来 mkdir 命令不起作用。
我做错了吗?
【问题讨论】:
-
通过在 .gitignore 文件夹上创建虚拟文件部分解决了 =(
-
在执行第一个命令之前,
bootstrap是否存在?
标签: laravel laravel-5 amazon-elastic-beanstalk