Google App Engine静态前端实例无法启动

时间:2015-08-12 13:43:40

标签: google-app-engine

当我向它发出URL请求时,我的静态前端实例(B1 instance_class)没有启动。任何的想法?在过去的4周里,我没有触及我的Google App Engine项目,突然间它再也无法运行了。

当我尝试访问该网址时,出现404 Not Found问题。没有静态前端模块的实例启动。

如果我的dispatch.yaml如下,如果我拨打以下电话:www.jitai-api.appspot.com/jawbone_work,它应该被路由到静态前端模块,对吧?这似乎不会发生。

application: jitai-api

dispatch:
- url: "jitai-api.appspot.com/"
  module: default

- url: "jitai-api.appspot.com/jawbone_work*"
  module: static-frontend

- url: "jitai-api.appspot.com/google_work*"
  module: static-frontend

1 个答案:

答案 0 :(得分:0)

您的发送规则与主机名jitai-api.appspot.com匹配,而不是www.jitai-api.appspot.com。尝试像这样定义它们:

application: jitai-api

dispatch:
- url: "*/jawbone_work*"
  module: static-frontend

- url: "*/google_work*"
  module: static-frontend

- url: "*/"
  module: default

来自the docs

# Matches the hostname 'customer1.myapp.com', but not '1.customer1.myapp.com. 
- url: "customer1.myapp.com/*"
  module: static-backend
相关问题