google-app-engine - 我应该如何编写我的 Google App Engine app.yaml 文件?

标签 google-app-engine yaml

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

/index.html

/css/index.css

/js/index.js

/feedbacks/index.html

/feedbacks/css/index.css

/feedbacks/js/index.js

app.yaml文件应该怎么写?

谢谢!

最佳答案

application: appname
version: 1
runtime: python
api_version: 1

handlers:

-   url: /favicon.ico
    static_files: img/favicon.ico
    upload: img/favicon.ico
    mime_type: image/x-icon

-   url: /css  #your css folder
    static_dir: css 

-   url: /scripts #your javascript folder
    static_dir: scripts


-   url: /img #your image folder
    static_dir: img

-   url: /.*
    script: your_script.py

关于google-app-engine - 我应该如何编写我的 Google App Engine app.yaml 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4324843/

相关文章:

java - 为什么我的更新不起作用?

google-app-engine - 从 Android Studio 部署 Google App Engine 后端

python - Google App Engine : How to do queries interact when they execute a function decorated by ndb. 事务

node.js - Nodejs 模板 yaml 文件

java - 如何将 application.yml 中的映射注入(inject)到 Spring Boot 中的字段中?

java - Google App Engine 中的静态和资源文件

python - 在 Google App Engine 上设计可扩展的产品数据库

ruby-on-rails - 如何强制yaml中的所有节点都是字符串

linux - 如何在多行而不是单行输出上打印 linux 组名

c++ - 使用yaml-cpp错误解析YAML文件