mat*_*ace 5 laravel composer-php laravel-vapor
我正在使用最新的 Laravel 7 开发一个应用程序,并使用 Vapor 部署到 AWS。我在Windows 10环境下。
当运行以下命令部署到暂存时,vendor/bin/vapor deploy出现以下错误。
In Process.php line 252:
The command "COMPOSER_MIRROR_PATH_REPOS=1 composer install" failed.
Exit Code: 1(General error)
Working directory: C:\Users\Matthew Wallace\Development\web\615ioDemos/.vap
or/build/app
Output:
================
Error Output:
================
'COMPOSER_MIRROR_PATH_REPOS' is not recognized as an internal or external c
ommand,
operable program or batch file.
Run Code Online (Sandbox Code Playgroud)
此问题的解决方案是打开vapor.yml并build:通过删除“COMPOSER_MIRROR_PATH_REPOS=1”来修改分段和生产部分中的composer安装行
这就是我的构建部分现在的样子。
build:
- 'composer install'
- 'php artisan event:cache'
- 'npm ci && npm run dev && rm -rf node_modules'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3242 次 |
| 最近记录: |