如何为Google App Engine应用编写`app.yaml`文件? [英] How to write `app.yaml` file for Google App Engine app?

查看:60
本文介绍了如何为Google App Engine应用编写`app.yaml`文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注册了Google App Engine应用,并且下面有一些文件:

I registered a Google App Engine app and I have some files below:

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

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

推荐答案

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

you should put your static files into some directory, for example staticdata then your app.yaml would look like:


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

handlers:
- url: /staticdata
  static_dir: staticdata

- url: /.*
  script: temp.py

这篇关于如何为Google App Engine应用编写`app.yaml`文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆