Project

General

Profile

Installing a plugin from behind an http proxy server

Added by Bruce McAlister over 12 years ago

Hi All,

As requested in "how to ask for help":

RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1.2
Rails version 2.3.11
Active Record version 2.3.11
Active Resource version 2.3.11
Action Mailer version 2.3.11
Active Support version 2.3.11
Edge Rails revision unknown
Application root /data/www/apps/redmine-1.2.1
Environment production
Database adapter postgresql
Database schema version 20110511000000

I'm following the tutorial on how to integrate redmine with gitosis, and I'm coming across an issue where when I go to run the script/plugin install command it is unable to connect to github:

script/plugin install git://github.com/xdissent/redmine_gitosis.git
Initialized empty Git repository in /data/www/apps/redmine-1.2.1/vendor/plugins/redmine_gitosis/.git/
github.com[0: 207.97.227.239]: errno=Network is unreachable
fatal: unable to connect a socket (Network is unreachable)

This makes perfect sense to me as this box is behind a proxy server. Is it possible to install plugins behind a proxy server of sorts? I already have my http_proxy and ftp_proxy environment variables set, additionally I have also setup "git config --global http.proxy $http_proxy".

Would anyone have any ideas as to how I can install this (or any) plugin from behind a proxy server? Is there a parameter that needs to be set within redmine itself to tel it there is a proxy server?

Any tips/suggestions would be greatly appreciated.

Thanks
Asgaroth