【问题标题】:How to write `app.yaml` file for Google App Engine app?如何为 Google App Engine 应用程序编写 `app.yaml` 文件?
【发布时间】:2011-07-01 22:20:21
【问题描述】:

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

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

app.yaml文件应该怎么写?

【问题讨论】:

    标签: python google-app-engine yaml


    【解决方案1】:

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

    应用:温度 版本:1 运行时:蟒蛇 api_version: 1 处理程序: - 网址:/静态数据 static_dir:静态数据 - 网址:/.* 脚本:temp.py

    【讨论】:

      猜你喜欢
      • 2011-05-18
      • 2020-03-19
      • 2019-10-19
      • 2017-02-02
      • 1970-01-01
      • 2015-08-22
      • 2014-08-12
      • 2022-01-24
      • 2021-04-06
      相关资源
      最近更新 更多