问题描述
继续从我仍然遇到运行Capistrano冻结在我的供应商文件夹中的问题。
当我尝试运行我的冻结版本的帽子时
ruby -r rubygems ./vendor/gems/capistrano-2.5.2/bin/cap deploy-with-migrations
我收到错误
... RubyGem版本错误:net-ssh(1.0.8 not> = 2.0.0)(Gem :: LoadError)...
我将net-ssh-2.0.4冻结在我的供应商文件夹中,因为我知道这是一个依赖项,所以我该如何使用它?
我希望将我的供应商文件夹添加到gempath下的我的.gemrc文件中:本来可以做到的,但事实并非如此。 'gem environment'显示供应商路径,但'gem list'不显示供应商文件夹中的宝石。
任何想法?
$ b $最终,我决定不冻结Capistrano和依赖到我的供应商的宝石目录,因为他们不是我的应用程序使用的宝石 - 他们曾用于部署我的应用程序。相反,我在本地将它们安装在我的托管帐户上,并且一切正常。
Following on from my question on using frozen Capistrano a couple of days back I'm still having issues running Capistrano frozen in my vendor folder.
When I try and run my frozen version of cap
ruby -r rubygems ./vendor/gems/capistrano-2.5.2/bin/cap deploy-with-migrations
I get an error
... RubyGem version error: net-ssh(1.0.8 not >= 2.0.0) (Gem::LoadError) ...
I have net-ssh-2.0.4 frozen in my vendor folder as I knew it was a dependency so how do I make use of it?
I'd hoped adding my vendor folder to my .gemrc file under the gempath: would have done the trick, but it hasn't. 'gem environment' shows the vendor path, but 'gem list' doesn't show the gems in the vendor folder.
Any ideas?
In the end I decided not to freeze Capistrano and dependancies to my vendor gems directory as they weren't gems used by my application - they were used to deploy my application.
Instead I locally installed them on my hosting account and all worked fine.
这篇关于我如何使用冷冻Capistrano第2部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!