怎么写`应用程序yaml`谷歌应用引擎应用程序文件?

2024-04-25 14:17:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我注册了一个Google App Engine应用程序,我有以下一些文件:

  • /index.html
  • /tabs.css
  • /tab.js
  • /temp.py

我应该如何编写app.yaml文件?在


Tags: 文件pyapp应用程序yamlindexhtmlgoogle
1条回答
网友
1楼 · 发布于 2024-04-25 14:17:48

您应该将静态文件放入某个目录,例如staticdata 那么你的应用程序yaml看起来像:

application: temp
version: 1
runtime: python
api_version: 1

handlers:
- url: /staticdata
  static_dir: staticdata

- url: /.*
  script: temp.py

相关问题 更多 >