我有一个具有以下文件结构的应用程序
app
├── src
│ ├── app.yaml
│ ├── {other}
│ ├── {.py source}
│ └── {files}
├── {{other}}
├── {{meta}}
└── {{data}}
在“推送部署”之前,我像这样部署我的应用程序
cd app/; appcfg.py --oauth2 update src
我想设置“推送部署”,但似乎它需要像这样在根目录中的 app.cfg。
app
├── app.yaml
├── {other}
├── {.py source}
├── {files}
├── {{other}}
├── {{meta}}
└── {{data}}
有没有办法在不将所有 {other .py source files} 移动到根目录的情况下使用“Push to Deploy”?
我可以将 app.yaml 文件移至根目录。但是,需要对 app.cfg 进行哪些更改?
这是我的app.cfg
文件
application: myApp
version: v1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /
script: main.application
- url: /tasks/.*
script: tasks.Update.app
login: admin
- url: /favicon.ico
static_files: resources/images/static/favicon.ico
upload: resources/images/static/favicon.ico
- url: /redirect/.*
script: Redirect.app