Bundler http 身份验证支持

发布于 2024-09-04 07:57:40 字数 145 浏览 3 评论 0原文

有谁知道 Bundler 是否支持 http auth?我相当确信 ruby​​gems 确实如此(我想我在某处读过),但我在文档中没有看到任何地方可以为我

尝试运行的 特定存储库指定用户名/密码我自己的私人 gem 服务器,以免暴露敏感代码

does anyone know if Bundler supports http auth? I'm pretty sure rubygems does (I think i read that somewhere) but I don't see anywhere in the docs where I might specify a username/pwd for a particular repo

I'm trying to run my own private gem server so as not to expose sensitive code

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

り繁华旳梦境 2024-09-11 07:57:40

根据 https://github.com/carlhuda/bundler/issues/300 你可以设置与 ruby​​gems 中相同的代理设置。

set HTTP_PROXY=http://[username]:[password]@[proxyserver]:[port]

http://dan-webb.co.uk/wordpress/?p=11

# cat $HOME/.gemrc
gem: --source http://[username]:[password]@[proxyserver]:[port]/[DIRECTORY]

http://www.sun.com/bigadmin/content/subscribed/ ruby_http.jsp

According to https://github.com/carlhuda/bundler/issues/300 you can set the proxy settings the same as in rubygems.

set HTTP_PROXY=http://[username]:[password]@[proxyserver]:[port]

http://dan-webb.co.uk/wordpress/?p=11

OR

# cat $HOME/.gemrc
gem: --source http://[username]:[password]@[proxyserver]:[port]/[DIRECTORY]

http://www.sun.com/bigadmin/content/submitted/ruby_http.jsp

寂寞陪衬 2024-09-11 07:57:40

Bundler 版本 1.6 在捆绑配置中添加了 HTTP 身份验证。

Bundler version 1.6 added HTTP auth in bundle config.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文