heroku rake需要'rake / dsl_definition'修复不工作+打破本地耙 [英] heroku rake require 'rake/dsl_definition' fix not working + breaking local rake

查看:166
本文介绍了heroku rake需要'rake / dsl_definition'修复不工作+打破本地耙的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在中描述了相同的heroku rake问题(以及我所能解决的问题)这个问题



当我尝试修正(包括require'rake / dsl_definition'''需要'rake')时,我得到相同的


'uninitialized constant Rake :: DSL'


Heroku + / b>


'不需要加载此文件 - rake / dsl_definition'

来自我的本地耙子。

不使用修正(使用标准rakefile),我可以在本地设置上使用rake而不会出现错误(使用相同的heroku错误)

我使用rake version 0.8.7(尽管我使用0.9.2获得相同的结果)和Rails 3.0.9。我已经阅读了上一个问题但从我能告诉问题不在我的Gemfile中。有没有其他人有这个问题?是否有其他人使用不同的解决方案解决了他们的heroku耙问题?或者任何人都可以解释/建议我如何不正确地解决这个问题?



感谢您的帮助。 尝试添加需要'rake / dsl_definition'在Rakefile之上。


I'm having the same heroku rake issues described (and from what I can tell solved) in this question.

When I try the fix (include require 'rake/dsl_definition' above require 'rake') I get the same

'uninitialized constant Rake::DSL'

error from heroku + I get the error

'no such file to load -- rake/dsl_definition'

from my local rake.

Without incorporating the fix (using the standard rakefile) I can use rake on my local setup with no errors (with the same heroku error)

I'm using rake version 0.8.7 (though I get the same results using 0.9.2) and Rails 3.0.9. I've gone through the suggestions in the previous question but from what I can tell the problem isn't with my Gemfile. Has anyone else had this problem? Has anyone else solved their heroku rake problem using a different solution? Or can anyone explain/suggest how I'm going about this incorrectly?

Thank you for your help.

解决方案

Try adding require 'rake/dsl_definition' on top of Rakefile.

这篇关于heroku rake需要'rake / dsl_definition'修复不工作+打破本地耙的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆