有人能幫助我(我是新來的YAML):經與YAML和谷歌App Engine的麻煩
application: baking-tutorial
version: secureable
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /robots\.txt
static_files: static/robots.txt
upload: static/robots\.txt
- url: /static
static_dir: static
secure: optional
- url: /main\.html
mime_type: text/html
static_files: static/\1
upload: static/main\.html
- url: /static/.*
script: mirror.app
secure: optional
- url: /.*
script: mirror2.app
secure: optional
基本上我想舉辦一個受密碼保護的網站,所以我有mirror2 .app直接指向你,那麼如果你把它正確的話,JavaScript會將你重定向到main.html,除非它不在那裏。
btw密碼部分工作只是main.html不會出現,它可以在我的電腦上運行,而不是如果我在引擎中運行它 – anonymous