是否可以使用Google App Engine托管多个应用程序?
我需要为每个新的Google App Engine应用程序新项目创建一个吗?还是有其他方法可以在一个项目中拥有多个应用程序?
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?
删除了其他问题"
使用services
可以轻松完成此操作.部署到App Engine时,请使用service: my-second-app
This is easily done with services
. When you deploy to App Engine define your app.yaml
file with a line like: service: my-second-app
完成另一个Node.js服务的app.yaml文件:
Complete app.yaml file for another Node.js service:
service: my-second-app
runtime: nodejs
env: flex
automatic_scaling:
min_num_instances: 1
部署时,请从包含app.yaml文件的目录中执行该操作:
When you deploy, do it from the directory containing your app.yaml file:
gcloud app deploy
或者如果您想仅在第二个应用程序的yaml文件中定义配置:
Or if you want to define your configuration in a yaml file just for your seond app:
gcloud app deploy my-second-app.yaml
新服务将与default
服务一起部署,并获得其自己的URL,例如:
The new service will be deployed along side your default
service and will get it's own URL like:
https://my-second-app-dot-my-project-name.appspot.com