Created
October 11, 2013 01:40
-
-
Save summerblue/6928391 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$gem server | |
会启动一个gem服务器。在我电脑上是找个提示: | |
$ gem server | |
Server started at http://0.0.0.0:8808 | |
Server started at http://[::ffff:0.0.0.0]:8808 | |
假设其IP为192.168.10.1然后在其他机器上,(注意绑定的IP是0.0.0.0,也就是这台机器上的所有IP都绑定上了,包括192.168.10.1 和回环地址 127.0.0.1 ),用如下命令安装 | |
gem install some_gem -s http:192.168.10.1:8808/ | |
或者在Gemfile的第一行写上(或修改source) | |
source "http://192.168.10.1:8808/" | |
然后执行bundle就会从这台机器上安装。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment