在http://mwmanning.com/2011/11/29/Run-Your-Jekyll-Site-On-Heroku.html的教程中工作。当我尝试推送到heroku时,我在输出中收到“build failed”消息。
Heroku日志显示
2013-01-30T05:29:54+00:00 heroku[slugc]: Slug compilation started
2013-01-30T05:31:36+00:00 heroku[slugc]: Slug compilation failed: failed to compile Ruby/rack app
2013-01-30T05:31:38+00:00 heroku[web.1]: State changed from crashed to starting
2013-01-30T05:31:51+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -p 14276 -e $RACK_ENV`
2013-01-30T05:31:53+00:00 app[web.1]: bundler: command not found: thin
2013-01-30T05:31:53+00:00 app[web.1]: Install missing gem executables with `bundle install`
2013-01-30T05:31:54+00:00 heroku[web.1]: Process exited with status 1272013-01-30T05:31:54+00:00 heroku[web.1]: State changed from starting to crashed
Gemfile和Gemfile.lock都显示已安装thin。
source :rubygems
gem 'jekyll'
gem 'rdiscount'
gem 'rack-jekyll'
gem 'thin'
gem 'RedCloth'
命令bundle exec thin start
在本地运行,bundle show thin
显示瘦是专门为当前gemset安装的。
我无法理解为什么heroku仍然说瘦了?
答案 0 :(得分:1)
对我来说,本地bundle update
解决了这个问题。
答案 1 :(得分:0)
对不起,不是直接回答。但这种方法对我有用。