문제

I have this in app.yaml

application: test
version: 1
runtime: go
api_version: go1

handlers:
- 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

I start the app with "dev_appserver.py test". When I open in the browser localhost:8080 or localhost:8080/index.html I get a 404

Folder structure

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top