尝试使用rails-composer来构建一个骨架应用程序,方法是选择3个选项来构建我自己的应用程序。选择Mongoid作为默认DB,Thin作为dev和prod的webserver。选择主页,用户,管理仪表板的Starter应用程序。
在运行脚本时,弹出以下错误,在尝试更新mongoid gem时似乎破了。
找不到宝石' mongoid(〜> 4)红宝石'在 git://github.com/mongoid/mongoid.git(在主人)。 来源包含' mongoid' at:4.0.0.alpha1 composer更新gem路径。
然后脚本没有完成。有谁知道导致这个问题的原因是什么?
答案 0 :(得分:0)
我找到了解决方案:
替换:
gem 'mongoid', '~> 4', :github=>"mongoid/mongoid"
使用:
gem 'mongoid', :github=>"mongoid/mongoid"