2015-12-21 14 views

回答

3

使用GEMS從你的服務

使用寶石來源命令寶石服務器添加到您的系統級寶石的來源。

寶石來源--add http://localhost:9292

然後安裝寶石像往常一樣:

gem install secretgem 
Successfully installed secretgem-0.0.1 1 gem installed 

如果你使用的捆紮機,那麼你可以指定該服務器在您的Gemfile寶石源:

cat Gemfile 
source "http://localhost:9292" 
gem "secretgem" 
bundle 
Using secretgem (0.0.1) 
Using bundler (1.0.13) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed. 

RubyGems Guides提取

0

你可以使用geminabox或更簡單的寶石服務器,只需創建代理(使用nginx) ,你可以在世界範圍內爲你的寶石提供服務,你的客戶應該在他們的Gemfile中設置源「你的服務器」。