liebke / cljr

cljr is a Clojure REPL and package management system.
236 stars 11 forks source link

Using proxy #2

Closed jandot closed 14 years ago

jandot commented 14 years ago

clj installs very fine on my own laptop (thanks!), but it seems to have issues connecting at the institute. Could it be that it doesn't handle connection through an http-proxy yet?

liebke commented 14 years ago

It uses lein deps during install, are you able to use lein sucessfully at the institute?

jandot commented 14 years ago

I'll let IT at the institute handle this. I'm able to access it from my laptop... (but there's another issue which I'll open separately.

jandot commented 14 years ago

Got it working: using

java -Dhttp.proxyHost=my-proxy-host -Dhttp.proxyPort=my-proxy-port -jar clj-1.0.0-SNAPSHOT-standalone.jar self-install

Also: added the -Dhttp.proxyHost and -Dhttp.proxyPort to the java command in ./bin/clj

liebke commented 14 years ago

The proxy properties will need to be added to every call to cljr, so I've added a JVM_OPTS environment variable support (it's default value is -Xmx1G). Add the proxy properties to this variable:

export JVM_OPTS="-Xmx1G -Dhttp.proxyHost=my-proxy-host -Dhttp.proxyPort=my-proxy-port"