Не работает подпапка движка приложения Google - PHP

0

my app.yaml выглядит следующим образом:

handlers:

- url: /static
  static_dir: static

- url: /static
  script: /static/index.html

- url: /
  script: index.html

Так что мне нужно, когда я обращаюсь к url http://xyz.appspot.com/static... он должен показывать содержимое static/index.html.... Но я не получаю ошибку... тогда как http ://xyz.appspot.com/static/index.html работает нормально

Теги:
google-app-engine
yaml

1 ответ

1
Лучший ответ

Вы не определили обработчик, вам нужно что-то вроде

handlers:

- url: /static
  static_dir: static

- url: /static/
  static_files: static/index.html
  upload: static/index.html

- url: /
  static_files: index.html
  upload: index.html

Ещё вопросы

Сообщество Overcoder
Наверх
Меню