Is there possibility to host multiple applications with Google App Engine?

前端 未结 5 1601
清歌不尽
清歌不尽 2020-12-23 09:23

Do I need to create for each new Google App Engine app new project? Or is there other way to have multiple apps in one project?

EDIT: removed \"extra question\"

5条回答
  •  渐次进展
    2020-12-23 10:17

    You can have an unlimited number of "apps" running with the same projectId. For example, you can have different client apps load when a user hits different URLs on your server: /mainApp, /setup, /admin, etc.

    These apps will have access to the same Datastore, so you have to be careful to separate them, for example, by using namespaces or different entity kinds - if you do need to separate them. In the example above, "Setup" and "Admin" may be different apps that access the same data.

    Note that having multiple apps in the same project is a good idea only if these apps are closely related. Otherwise, it becomes very inconvenient, even if you use different App Engine modules to run each app's server-side code.

提交回复
热议问题