[英]To host a static (HTML) website on Google App Engine, what should be in the app.yaml file?
我可以用它來上傳HTML頁面嗎?
app.yaml
內容:
application: visualvidya
version: 1
runtime: python
api_version: 1
handlers:
- url: /(.*\.(gif|png|jpg|ico|js|css))
static_files: \1
upload: (.*\.(gif|png|jpg|ico|js|css))
靜態站點的最小handlers
部分可能如下所示:
handlers:
- url: /
static_files: static/index.html
upload: static/index.html
- url: /
static_dir: static
每個網站都不同,正如肖恩在評論中指出的那樣,您需要查閱文檔 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.