我有一个像这样的bitbucket-pipelines.yml文件:
pipelines:
branches:
master:
- step:
name: JS
image: node:8.9.4
caches:
- node
script:
- npm install
- npm run dev
- step:
name: PHP
image:
name: snaver/docker-deploy
caches:
- composer
script:
- php -r "copy('.env.pipelines', '.env');"
- composer install --optimize-autoloader --no-interaction --prefer-dist --ignore-platform-reqs
- php -r "copy('.env.pipelines', '.env');"
- php -r "file_exists('database/database.sqlite') || touch('database/database.sqlite');"
- php artisan key:generate
- php artisan migrate:refresh --seed
- ./vendor/bin/phpunit
现在,当我运行管道时,它在显示“ php artisan key:generate”的行上失败
It says its successful but raises an error like this
我的composer.json就是这样
"require" : {
"php": "^7.1.3",
"fideloper/proxy": "^4.0",
"intervention/image": "^2.4",
"laracasts/utilities": "^3.0",
"laravel/framework": "5.7.*",
"laravel/tinker": "^1.0",
"tightenco/ziggy": "^0.6.9"
},
"require-dev" : {
"beyondcode/laravel-dump-server": "^1.0",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"itsgoingd/clockwork": "^3.0",
"laravel/dusk": "^4.0",
"laravel/telescope": "^1.0",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0"
},
我已经在其他任何laravel应用程序上尝试过该yml文件,而artisan命令运行良好,但是具体而言,在此配置下,