4
使用jekyll构建个人博客。在本地主机上一切正常。我不想在github上部署它。出于某些原因,我更愿意在Google应用引擎上托管。托管jekyll Google App引擎
我跟随了一些在线指令,并将生成的_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和其他一些文件显示。其他人显示未找到页面。有什么我没有正确实施?
顺便说一句,如果它只是一个静态的网站,很容易将其部署到存储。您可以将一个域名分配给一个存储桶,如果是这样的话 –