English 中文(简体)
如何在代理人后面使用dler子?
原标题:How to use bundler behind a proxy?

我从苏多布列指挥处获得以下产出:

Fetching source index for `http://rubygems.org/`  
Could not reach rubygems repository `http://rubygems.org/`  
Could not find gem  rspec-rails (>= 2.0.0.beta.22, runtime)  in any of the gem sources.

www.un.org/chinese/ga/president 这些环境使我的大军能够工作,我希望它们能够转化为dler子,但没有这种uck子。

想上帝可能不会继承我的所有环境,我也把这些环境带给我的原用人,而是纳达。

此时此刻,我的兄弟们正在阻止我部署我的申请,我发现很少有其他人这样做。 如果没有人回答的话,我将被迫从我的铁道上铺rip。

最佳回答

OSX &HCH

export http_proxy=http://user:password@host:port
export HTTP_PROXY=$http_proxy

如果它使用HTTPS,那么它也是这样。

export https_proxy=http://user:password@host:port
export HTTPS_PROXY=$https_proxy

如果您使用<代码>sudo,通过缺省代码<>sudo,则不保留“代理变量”。 使用<代码>-E

$ sudo -E bundle install

(a) 将环境变数按违约加以保存:

https://memset.wordpress.com/ 10/14/bash-http_proxy-from-a-user-environment-to-sudo-one/

http://www.ohchr.org。

如下文的答复所示,您可使用<代码>SET。

SET HTTP_PROXY=http://user:password@host:port
SET HTTPS_PROXY=%HTTP_PROXY%
问题回答

我指出,除了http://proxy外,吉大港山区也给我带来积极的影响,即它为我工作。 因此,假定你建立了<代码>http://proxy,环境变量正确,尝试(如果你正在使用bash)

export HTTP_PROXY=$http_proxy

并且随后还使用<代码>-E备选办法(保护环境变量),

sudo -E bundle install

Jarl

如果你不想在系统中设定一个全球变量,你可以ed到或照样书写。

---
:benchmark: false
:verbose: true
:sources:
- http://rubygems.org/
- http://gems.rubyforge.org
:backtrace: false
:bulk_threshold: 1000
:update_sources: true
gem: --http-proxy=http://USERNAME:PASSWORD@ADDRESS:PORT

a. 在XP/7双面接 to后获得dler 我需要做以下工作:

我添加了http://proxy to the Environment Variables

  • My Computer
  • Advanced system settings
  • Advanced Tab Environment
  • Variables
  • New
  • Variable name = http_proxy
  • Variable value = MY_PROXY
  • Click Ok

MY_PROXY改为你本人。

这为dler。 弧代体只为宝石工作。

thanks Jamie

你们可以在当地下载所需的高射线器,并安装灰色。 我知道,这并非完全是站不住脚的。

可能更加灵活和易于控制的批量文档:

SET /P login="Enter proxy login: "
SET /P password="Enter proxy password: "
SET HTTP_PROXY=http://%login%:%password%@proxy.com:8080
SET HTTPS_PROXY=%HTTP_PROXY%

CLS

bundle install

视窗OS在安装<条码>旁边运行

SET http_proxy=http://user:password@host:port

• 确保设立“你任”网站。 如果你重新使用Liberin,则试图让以下指挥机构知道它指的是什么代理。

echo $http_proxy

在我的班图索,我为我的代理服务器(~/bashrc)设定了我的http://proxyenvironment变量。

$ export http_proxy="http://username:password@host:port"
$ export ftp_proxy="http://username:password@host:port"
$ sudo visudo

在档案中添加这一条线:

Defaults env_keep = "http_proxy ftp_proxy"

以上:

Defaults        env_reset

之后,当你指挥它工作时,你就会指挥。

ref :https://memset.wordpress.com/ 10/14/bash-http_proxy- from-auser-environment-to-sudo-one/

我是乌班图。 http://www.ohchr.org。 其中一个项目属于灰色。

如果你将以下内容放到你/我们的工作之中。

http://www.ohchr.org。

用你的代理地址和港口取代代用舱。 我补充说,我拥有“闲置装置”,一切照旧。

(a) 在窗户上与代理人一道工作:

  1. Edit file .gemrc. Open windows command line and type: notepad %userprofile%.gemrc .
  2. The file .gemrc is open in notepad. Type on a new line http_proxy: http://username:passwordEncodedWithUrlencode@proxyaddress:proxyport . Password should be encoded with urlencode .
  3. Close the file .gemrc with saving it.




相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签