[英]How to deploy a Flask app to Google Cloud (App Engine) with an application factory, and how to write the app.yaml file?
[英]How to write `app.yaml` file for Google App Engine app?
我注册了一个Google App Engine应用程序,下面有一些文件:
/index.html
/tabs.css
/tab.js
/temp.py
我应该如何编写app.yaml
文件?
您应该将静态文件放入某个目录,例如staticdata
然后您的app.yaml将如下所示:
application: temp version: 1 runtime: python api_version: 1 handlers: - url: /staticdata static_dir: staticdata - url: /.* script: temp.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.