尝试在 Dreamhost 上安装 Diaspora 时出现 Rake 问题
我正在尝试按照此处的说明在我的 Dreamhost 帐户上安装 Diaspora pod:
https://github.com/diaspora/diaspora/wiki/Installing-and-Running-Diaspora
一切都很顺利,直到需要使用 Rake 来设置数据库。我使用 dreamhost 的 Web 界面创建了数据库,然后尝试了指南中给出的行:
RAILS_ENV=production bundle exec rake db:migrate
结果是:
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake: Is a directory - /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake (Errno::EISDIR)
from /usr/bin/rake:19:in `load'
from /usr/bin/rake:19
它看起来像是某种 Rake 问题(实际上, /usr/lib/ruby/gems/1.8/gems/rake- 0.8.7/lib/rake 是一个目录)。
我还有一些其他自制的 Ruby-on-Rails 项目在 Dreamhost 上运行,并且它们的 rake 没有类似的问题。他们的 rakefile 看起来有点不同,但我不确定是什么导致了问题。
I am attempting to install a Diaspora pod on my Dreamhost account, following the instructions here:
https://github.com/diaspora/diaspora/wiki/Installing-and-Running-Diaspora
Everything went smooth until it was time to use Rake in order to set up the database. I created the databases using dreamhost's web interface, and then attempted the line given in the guide:
RAILS_ENV=production bundle exec rake db:migrate
The result being:
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake: Is a directory - /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake (Errno::EISDIR)
from /usr/bin/rake:19:in `load'
from /usr/bin/rake:19
It looks like some sort of Rake problem (and indeed, /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake is a directory).
I have some other homemade Ruby-on-Rails projects running on Dreamhost and have no similar problem with rake for them. Their rakefile looks a little different but I'm not sure what causes the problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是猜测,在该行末尾设置 RAILS_ENV=production 会有帮助吗?
Just a guess, would it help to set RAILS_ENV=production on the end of the line?