没有要加载的文件——capybara/rails
我正在尝试 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现他的意思是移动上面那行
组:测试,:开发
只是为了澄清,这是它之前的样子
顺便说一句,这些是行号,这是之后的
现在 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
Those are the line numbers btw and this is after
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.