相关疑难解决方法(0)

如何在Heroku上修复未初始化的常量Rake :: DSL问题?

我越来越类似于那些错误 这些 问题,除了我的是上发生的Heroku:

2011-05-30T09:03:29+00:00 heroku[worker.1]: Starting process with command: `rake jobs:work`
2011-05-30T09:03:30+00:00 app[worker.1]: (in /app)
2011-05-30T09:03:30+00:00 heroku[worker.1]: State changed from starting to up
2011-05-30T09:03:33+00:00 app[worker.1]: rake aborted!
2011-05-30T09:03:33+00:00 app[worker.1]: uninitialized constant Rake::DSL
2011-05-30T09:03:33+00:00 app[worker.1]: /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.0/lib/rake/tasklib.rb:8:in `<class:TaskLib>'
Run Code Online (Sandbox Code Playgroud)

这些问题的答案似乎是要指定,gem 'rake', '0.8.7'因为0.9版本会导致问题.

当我尝试添加gem 'rake', '0.8.7'到我的gemfile并推送到Heroku时,我收到此错误:

Unresolved dependencies detected; Installing...
You have modified your Gemfile in development but did not check
the resulting snapshot (Gemfile.lock) into version control

You have added to the Gemfile:
* rake …
Run Code Online (Sandbox Code Playgroud)

rake ruby-on-rails heroku ruby-on-rails-3

101
推荐指数
3
解决办法
4万
查看次数

标签 统计

heroku ×1

rake ×1

ruby-on-rails ×1

ruby-on-rails-3 ×1