将jekyll部署到heroku时出错?

时间:2012-06-21 18:15:19

标签: ruby-on-rails ruby-on-rails-3 heroku jekyll

我正在尝试将一个jekyll应用程序部署到heroku ...它在本地运行,没有任何问题。

这是heroku日志

2012-06-21T18:02:26+00:00 heroku[web.1]: State changed from crashed to created
2012-06-21T18:02:26+00:00 heroku[web.1]: State changed from created to starting
2012-06-21T18:02:28+00:00 heroku[web.1]: Starting process with command `jekyll --server 37139`
2012-06-21T18:02:29+00:00 app[web.1]: bash: jekyll: command not found
2012-06-21T18:02:30+00:00 heroku[web.1]: Process exited with status 127
2012-06-21T18:02:30+00:00 heroku[web.1]: State changed from starting to crashed
2012-06-21T18:02:31+00:00 heroku[router]: Error H10 (App crashed) -> GET furious-dusk-3604.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-06-21T18:02:32+00:00 heroku[router]: Error H10 (App crashed) -> GET furious-dusk-3604.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
2012-06-21T18:02:36+00:00 heroku[router]: Error H16 (Redirect to herokuapp.com) -> GET furious-dusk-3604.herokuapp.com/ dyno= queue= wait= service= status=301 bytes=

该行

2012-06-21T18:02:29+00:00 app[web.1]: bash: jekyll: command not found

引起了我的注意,但我真的不知道这里可能出现什么问题。在我的Gemfile中,我确实指定了

gem 'jekyll'

干杯!

1 个答案:

答案 0 :(得分:0)

我假设你正在使用带有Heroku buildpack的rack-jekyll。我有同样的问题,Heroku记录崩溃。我通过创建如下所述的Sinatra服务器来解决它:Jekyll on Heroku