簡體   English   中英

要在Google App Engine上托管靜態(HTML)網站,app.yaml文件中應包含哪些內容?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM