誰でもプロキシのpacファイルからルビーのgemsプロキシを設定できますか?プロキシのpacファイルを使ってruby gemsプロキシを設定する
.pacですが、スクリプトですので、私は
gem install rails -p http://wolfbyte:[email protected]:8080
ような何かをするためにフラグ-pを使用することはできません。
ヒント? おかげ
誰でもプロキシのpacファイルからルビーのgemsプロキシを設定できますか?プロキシのpacファイルを使ってruby gemsプロキシを設定する
.pacですが、スクリプトですので、私は
gem install rails -p http://wolfbyte:[email protected]:8080
ような何かをするためにフラグ-pを使用することはできません。
ヒント? おかげ
ノーマルケース:
rails server [mongrel, thin, etc] [options]
-p, --port=port Runs Rails on the specified port.
Default: 3000
-b, --binding=ip Binds Rails to the specified ip.
Default: 0.0.0.0
-c, --config=file Use custom rackup configuration file
-d, --daemon Make server run as a Daemon.
-u, --debugger Enable ruby-debugging for the server.
-e, --environment=name Specifies the environment to run this server under (test/development/production).
Default: development
-P, --pid=pid Specifies the PID file.
Default: tmp/pids/server.pid
ここ
-pまたは-PはWEBrickにサーバが実行されるポートをサポートしています。プロキシ設定でサポートするようには書かれていません。
PACファイルをダウンロードして、プロキシサーバーのアドレスを調べることができます。
たとえば、ファイルが含ま:
function FindProxyForURL(url, host) {
return "PROXY pigsy:8080";
}
は、より複雑なPACファイルについては
gem install rails -p http://wolfbyte:[email protected]:8080
を入力する必要が使用するruby-pac