简体   繁体   中英

How to deploy multiple app-engine instances with maven?

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!

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM