没有要加载的文件——capybara/rails

发布于 2024-11-30 20:47:53 字数 776 浏览 0 评论 0原文

我正在尝试 OSS catarse 并且工作正常按照教程后在我的机器上(请参阅链接)。

然后我使用它推送到heroku

git push heroku master

并且它工作正常,问题是当我尝试使用

heroku rake db:migrate 

我得到的

(in /app)
rake aborted!
no such file to load -- capybara/rails

数据库迁移时我不知道我应该做什么,我在网上看到了几个解决方案,但是有这个的人同样的问题在他们发布的论坛上从未得到答案。 答案之一是:

我已将水豚移出组,现在 rake db:migrate 可以工作 很好,谢谢!!

我必须说这个人的英语很糟糕,我不确定他做了什么,但他说的几乎就是这些。 我以为他指的是 Gemfile 行

组:测试,:开发

在原始文件中找到,我将其删除,问题仍然存在。 还有其他想法吗?如有任何帮助,我将不胜感激,我刚刚开始学习 Rails,我非常愿意学习解决此问题所需的任何内容,因此请随时向我发送 rtfm,只需告诉我哪个:P

i'm trying out the OSS catarse and it works fine on my machine after following the tutorial(see the link).

Then i push it to heroku using

git push heroku master

And it works fine, the problem is when i try to migrate the db using

heroku rake db:migrate 

I get

(in /app)
rake aborted!
no such file to load -- capybara/rails

And i'm not sure what should i do, i saw a couple of solutions online, but the people that had this same problem never got an answer on the forums they post.
One of the answers was:

I've moved capybara outside the groups and now rake db:migrate works
just fine, tks!!

I must say this person had a terrible english, i'm not sure what he did, buts thats pretty much all he says.
I thought he meant the Gemfile line

group :test, :development do

Found on the original file, i removed it and the problem remains.
Any other ideas? any help would be appreciated, i'm just starting to learn rails and i'm much willing to learn anything i need to solve this issue so feel free to send me rtfm just tell me which :P

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紫竹語嫣☆ 2024-12-07 20:47:53

我发现他的意思是移动上面那行
组:测试,:开发
只是为了澄清,这是它之前的样子

 33 group :test, :development do
 34   gem 'capybara', ">= 0.4.0"

顺便说一句,这些是行号,这是之后的

 33 gem 'capybara', ">= 0.4.0"
 34 group :test, :development do

现在 heroku rake db:migrate 按预期工作,该应用程序仍然无法工作,但这可能是另一个问题。
如果有人愿意解释,我们将不胜感激。

I found that what he meant was moving the line above
group :test, :development do
Just for clarification this is how it looked before

 33 group :test, :development do
 34   gem 'capybara', ">= 0.4.0"

Those are the line numbers btw and this is after

 33 gem 'capybara', ">= 0.4.0"
 34 group :test, :development do

Now heroku rake db:migrate works as expected, the app still doesnt work but thats for another question maybe.
If anyone care to explain that would be much appreciated.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文