【发布时间】:2021-12-02 13:58:22
【问题描述】:
我在三个不同的文件夹中有三个服务,
app.yaml:(默认服务) (https://cool-adviser-307212.oa.r.appspot.com/)(https://abanoub-ayoub.com/)
runtime: nodejs16
handlers:
- url: /
static_files: build/index.html
upload: build/index.html
- url: /
static_dir: build
ui-challenge.yaml: (https://ui-challenge-dot-cool-adviser-307212.oa.r.appspot.com/)
runtime: nodejs16
service: ui-challenge
handlers:
- url: /
static_files: build/index.html
upload: build/index.html
- url: /(.*)$
static_files: build/\1
upload: build/(.*)
test-service.yaml: (https://test-service-dot-cool-adviser-307212.oa.r.appspot.com/)
runtime: nodejs16
service: test-service
handlers:
- url: /
static_files: build/index.html
upload: build/index.html
- url: /(.*)$
static_files: build/\1
upload: build/(.*)
在根文件夹中,我有 dispatch.yaml
dispatch:
- url: "abanoub-ayoub.com/"
service: default
- url: "*/ui-challenge"
service: ui-challenge
- url: "*/test"
service: test-service
但是当我导航到 (https://abanoub-ayoub.com/ui-challenge) 或 (https://abanoub-ayoub.com/task) 时,我收到 404 错误,但我需要能够导航到这些服务。
更新
谢谢!
【问题讨论】:
标签: node.js google-cloud-platform cloud