php - 如何在 GAE [Google App engine] PHP 上创建或部署另一个服务/模块(默认已部署)
问题描述
我已经在 PHP 中部署了 Google App Engine 默认服务,但我需要创建另一个服务以使我能够将我的网站的移动版本从 example.com 重定向到 mobile.example.com。
我在谷歌文档上读到你使用我是管理员,我已经完成了建议的方法,但无济于事。
请指点我的路。提前致谢。
解决方案
我刚刚想通了。解决方案是在app.yaml文件中,如果没有创建,在app.yaml中添加service:service_name,它会自动创建。
runtime: php72
runtime_config:
document_root:
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
entrypoint:
serve worker.php
至
runtime: php72
runtime_config:
document_root:
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
entrypoint:
serve worker.php
service: mobile-frontend