I'm trying to deploy a nuxt application to gcloud. The pipeline runs and deploys just fine but I get 404 errors from the gcloud app instance.
Locally running
gcloud app deploy app.yaml --project $GCLOUD_PROJECT
works just fine, as you can see I'm specifying app.yaml which configures all the routing information for nuxt (see app.yaml example below).
My thinking is that app.yaml is not being considered in the deploy, however reading the docs, I can't seen any specific key to define this as a variable.
bitbucket-pipelines.yaml
....
- step:
name: Build
caches:
- node
script:
- npm install
- npm run build
artifacts:
- .nuxt/**
- step:
name: Deploy
script:
- pipe: atlassian/google-app-engine-deploy:0.2.1
variables:
KEY_FILE: $KEY_FILE
PROJECT: $GCLOUD_PROJECT
# HOW TO I SPECIFY app.yaml as the app engine configuration?
# app.yaml
runtime: nodejs10
instance_class: F2
handlers:
- url: /_nuxt
static_dir: .nuxt/dist/client
secure: always
- url: /(.*\.(gif|png|jpg|ico|txt))$
static_files: static/\1
upload: static/.*\.(gif|png|jpg|ico|txt)$
secure: always
- url: /.*
script: auto
secure: always
env_variables:
HOST: '0.0.0.0'
NODE_ENV: 'production'
Any help would be greatly appreciated. Cheers