简体   繁体   中英

How to create or deploy another service/module (have deployed on default) on GAE [Google App engine] PHP

I have already deployed on Google App Engine default service in PHP, but I need to create another service to enable me redirect to the mobile version of my website from example.com to mobile.example.com.

I read on google docs that you use I AM ADMIN, I have done the suggested method but to no avail.

Please kindly point me to the way. Thanks in advance.

如何添加另一个服务。

I just figured it out. The solution was in the app.yaml file, add the service:service_name in the app.yaml if it is not created, it would create it automatically.

runtime: php72
runtime_config:
  document_root:

handlers:
  - url: /.*
     script: auto
     secure: always
     redirect_http_response_code: 301

  entrypoint:
     serve worker.php 

TO

runtime: php72
runtime_config:
  document_root:

handlers:
  - url: /.*
     script: auto
     secure: always
     redirect_http_response_code: 301

  entrypoint:
     serve worker.php 

  service: mobile-frontend 

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