我注册了一个 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/