繁体   English   中英

如何为Google App Engine应用程序写入`app.yaml`文件?

[英]How to write `app.yaml` file for Google App Engine app?

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

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

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

您应该将静态文件放入某个目录,例如staticdata然后您的app.yaml将如下所示:

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

handlers:
- url: /staticdata
  static_dir: staticdata

- url: /.*
  script: temp.py

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM