Step #3: Step #2: Generating optimized autoload files
Step #3: Step #2: > Illuminate\Foundation\ComposerScripts::postAutoloadDump
Step #3: Step #2: > @php artisan package:discover --ansi
Step #3: Step #2:
Step #3: Step #2: In PackageManifest.php line 177:
Step #3: Step #2:
Step #3: Step #2: The /app/bootstrap/cache directory must be present and writable.
Step #3: Step #2:
Step #3: Step #2:
Step #3: Step #2: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Step #3: Step #2: error building image: error building stage: waiting for process to exit: exit status 1
Step #3: Finished Step #2
Step #3: ERROR
----
This is my composer section:
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
],
"post-install-cmd": [
"find .\/bootstrap\/cache -type d -exec chmod g+s {} \\;",
"find .\/storage -type d -exec chmod g+s {} \\;",
"chmod -R 755 .\/bootstrap\/cache",
"chmod -R 755 .\/storage\/logs",
"php artisan cache:clear",
"php artisan route:cache",
"php artisan config:cache",
"php artisan view:cache"
],
"post-update-cmd": [
"Illuminate\\Foundation\\ComposerScripts::postUpdate"
]
},
This is my cloudbuild file:
steps:
- name: 'gcr.io/cloud-builders/gsutil'
args: [ 'rsync', 'gs://$_BUCKET/', './' ]
- name: node:14.0.0
entrypoint: npm
args: ['install']
- name: node:14.0.0
entrypoint: npm
args: ['run', 'prod-all']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['beta', 'app', 'deploy', '--project', '$PROJECT_ID', '-q', '$_GAE_PROMOTE', '-v', '$_GAE_VERSION']
timeout: '3600s'
It was working just this morning, I am not sure what happened.
Thanks
Bill