I currently have an application running on Google App Engine Standard, nodejs10, let's call this App1. This app currently uses a CloudSQL database. I want to start adding other services that use the same data store and CloudSQL instance, because all of the apps are working with the same data.
App1 is currently live and working correctly. Obviously this has its own app.yaml that looks like this, it's the default service:
env: standard
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
handlers:
- url: /case/upsertCase
static_dir: public
secure: always
env_variables:
App2 has its own .yaml file called app2.yaml and it looks like this, this service is called app2:
service: app2
runtime: nodejs10
env: standard
resources:
cpu: 1
memory_gb: 0.5
disk_size_gb: 10
handlers:
- url: /register/call
static_dir: public
secure: always
I deploy App1 with: gcloud deploy app I deploy App2 with: gclour deploy app app2.yaml
For some reason, when I try and hit app2-dot-app1.appspot.com/register/call I get a 500. When I try and hit https://app2.app1.appspot.com/register/call I get a 'Your connection is not private' error message.
Is it possible to run two services in the same app like this? I've set them to use the same port, is that correct?
I've been fiddling around with it and Googling\trawling SO, but I can't find an answer anywhere.