[英]Passenger and i18n
I´m using Rails 3.2.2 and when I tried to load my application on Passenger, I saw the error: 我正在使用Rails 3.2.2,当我尝试在Passenger上加载我的应用程序时,我看到了错误:
Could not find i18n-0.6.0 in any of the sources (Bundler::GemNotFound) 在任何来源中都找不到i18n-0.6.0(Bundler :: GemNotFound)
But I have installed this gem. 但我已经安装了这个宝石。
-bash-3.2$ bundle show i18n
/home/aeci/.gems/gems/i18n-0.6.0
This problem is similar to this , but someone have any idea what can I do? 这个问题与此类似,但有人知道我该怎么办? If the problem is Hosting service bug, what can I tell for my host company?
如果问题是托管服务错误,我可以告诉我的主机公司?
I've tried to delete gemfile.lock and create a new one, but doesn´t work. 我试图删除gemfile.lock并创建一个新的,但不起作用。
Tks! TKS!
The solution is: 解决方案是:
cd application_name
$ bundle install --path vendor
$ bundle package
$ echo 'vendor/ruby' >> .gitignore
I had the same problem. 我有同样的问题。 In my case my project had a 'my_app' gemset configured, and passenger was trying to run the app with the 'default' gemset.
在我的情况下,我的项目配置了'my_app'宝石集,乘客试图使用'默认'宝石集运行应用程序。 This default gemset didn't had installed i18n so it was not possible to run it.
此默认gemset未安装i18n,因此无法运行它。
My solution was: 我的解决方案是:
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.