当我试图推送到heroku时,我得到了这样的消息:
rake aborted! undefined method empty? for nil:NilClass (in /tmp/build_3d16ad44-0015-4ecb-a7cf-a41959f03f82/app/assets/stylesheets/application.css.scss)
在追踪之后,我意识到这是因为
rake aborted! You have already activated rake 10.0.3, but your Gemfile requires rake 0.9.2.2. Using bundle exec may solve this.
这可能是一个非常愚蠢的问题,但我不确定我应该如何使用bundle exec来为heroku做这件事?请帮帮忙。谢谢。
发布于 2013-10-06 01:32:11
在终端的项目目录中:
gem list rake您将看到多个版本。如果是,则通过命令删除不需要的版本(例如,在您的示例中为10.0.3 ):
gem uninstall rake它将要求您从列表中选择特定版本,选择一个,然后按enter键。
或者,您还可以更新到特定的版本
bundle update rake -v '0.9.2.2'https://stackoverflow.com/questions/19199772
复制相似问题