Hello,
I am trying to deploy a react app to GAE flex and I've made sure that the app is listening to port 8080 but for some reason everything I do results in a page that says `502 Bad Gateway nginx`, this is what my app.yaml looks like:
# runtime to spin up frontend
runtime: nodejs
# type of App Engine environment
env: flex
# command to begin frontend server
entrypoint: yarn start
# name of the service (default because this is where we want traffic to go)
service: default
# computing resources (went with defaults)
# scaling configuration
automatic_scaling:
min_num_instances: 1
max_num_instances: 2
cool_down_period_sec: 140
cpu_utilization:
target_utilization: 0.6
# handlers for routing
handlers:
- url: /
static_files: build/index.html
upload: build/index.html
- url: /(.*)
static_files: build/\1
upload: build/(.*)
I have edited the start script to include 'PORT=8080', but that does not help.