我在 app.yaml 中有這個application: testversion: 1runtime: goapi_version: go1handlers:- url: / static_files: client/index.html upload: client/index.html- url: /index\.html static_files: client/index.html upload: client/index.html- url: /(.*\.(css|gif|png|jpg|ico|js|html)) static_files: client/\1 upload: client/(.*\.(css|gif|png|jpg|ico|js|html))- url: /.* script: _go_app我使用“dev_appserver.py test”啟動應用程序。當我在瀏覽器中打開 localhost:8080 或 localhost:8080/index.html 我得到一個 404
1 回答

ABOUTYOU
TA貢獻1812條經驗 獲得超5個贊
application: test
version: 1
runtime: go
api_version: go1
handlers:
- url: /
static_files: app/client/index.html
upload: app/client/index.html
- url: /(.*\.(css|gif|png|jpg|ico|js|html))
static_files: app/client/\1
upload: app/client/(.*\.(css|gif|png|jpg|ico|js|html))
- url: /.*
script: _go_app
- 1 回答
- 0 關注
- 158 瀏覽
添加回答
舉報
0/150
提交
取消