5


I upload my endpoints app to GCP AppEngine and it work nice. But in the dashboard, the service name be assigned to 'default'.

How do I set the service name?
Thanks for your support. enter image description here

Lak Fu
  • 165
  • 3
  • 12
  • 2
    Note that you can only change the name for the *additional* services, the `default` service is mandatory, see https://stackoverflow.com/a/44193480/4495081 – Dan Cornilescu Jan 18 '19 at 10:47

3 Answers3

11

There are several ways to set a service's name in App Engine. If you use Java with Maven for example, you can:

If you use Python, you can:

  • set service: service_name in the app.yaml file
LundinCast
  • 9,412
  • 4
  • 36
  • 48
6

Use service: service_name in your app.yaml file.

Documentation

edbighead
  • 5,607
  • 5
  • 29
  • 35
  • Thanks for your reply, but I develop with Eclipse and Java. After check the document https://cloud.google.com/appengine/docs/standard/java/configuration-files, I cannot find the doc about app.yaml for java, is there have any other way to configure it? – Lak Fu Jan 18 '19 at 08:31
  • Also valid for other languages. Example: PHP7, look for element "service" in documentation (https://cloud.google.com/appengine/docs/standard/php7/config/appref). Also, note that this may *create* new services. Spot the phrase "Required if creating a service." – Fabien Haddadi Sep 10 '21 at 20:42
0

Agreed on below answers. I did the same thing in app.yaml file in spring-boot appengine and it's working...

runtime: java11
instance_class: F4
service: appengine-spring-boot
handlers:
  - url: /.*
    script: this field is required, but ignored
Ajay Kumar
  • 4,864
  • 1
  • 41
  • 44