2

I have 2 java springboot services to be deployed to google app-engine (standard env). They both work fine and I was able to deploy them both with mvn appengine:deploy.

However the standard environment automatically assigns a name and version to each service and causes them to overwrite one another.

I have already looked into this answer which didn't work in the standard environment.

How do I deploy multiple services with different names so they don't overwrite one another?

Thanks in advance!

TasosZG
  • 1,274
  • 1
  • 6
  • 13
ateymour
  • 199
  • 3
  • 11

1 Answers1

2

You can specify the name of the service in the appengine-web.xml of each application by adding the <service> element:

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
  <runtime>java8</runtime>

  <service>your-service-name</service>

  <threadsafe>true</threadsafe>
</appengine-web-app>
TasosZG
  • 1,274
  • 1
  • 6
  • 13