【发布时间】:2016-09-04 13:55:59
【问题描述】:
使用 jekyll 建立个人博客。在本地主机上一切正常。我不想在 github 上部署它。出于某些原因,我更喜欢托管在谷歌应用引擎上。
我按照网上的一些说明将生成的 _site 文件夹复制到我的谷歌应用引擎项目中。
这就是app.yaml 的样子:
application: myblog
version: 1
runtime: python27
api_version: 1
threadsafe: yes
error_handlers:
- file: /404.html
handlers:
- url: /
static_files: _site/index.html
upload: _site/index.html
- url: /(.*)
static_files: _site/\1
upload: _site/(.*)
libraries:
- name: webapp2
version: "2.5.2"
当我在谷歌应用引擎上本地运行它时,只显示 index.html 和其他一些文件。其他显示页面未找到。有什么我没有正确实施的吗?
【问题讨论】:
-
顺便说一句,如果它只是一个静态网站,将它部署到存储更容易。如果是这个原因,您可以为存储桶分配域名