我正在尝试在 heroku 上设置一个 jekyll 博客。这是我的目录结构
.
├── Gemfile
├── Gemfile.lock
├── _layouts
│ └── default.html
├── _posts
├── _site
│ ├── Gemfile
│ ├── Gemfile.lock
│ ├── config.ru
│ └── index.html
├── config.ru
└── index.html
我的 Gemfile 有
source "http://rubygems.org"
gem 'jekyll'
并且只有其他包含任何内容的文件index.html
与
Hello world!
如果我运行jekyll --server
它在本地运行良好。但是,如果我git push heroku master
(在检查完所有内容后)我的 heroku 日志中出现此错误
!! Unexpected error while processing request: undefined method `[]' for nil:NilClass
如何让我的 jekyll 博客在 Heroku 上工作?