Grails set proxy

http://lalitagarw.blogspot.co.uk/2011/06/grails-configuration-proxy-settings.html


GRAILS Configuration -- Proxy Settings

There are two commands to set proxy in GRAILS.

  • Add Proxy - adds a proxy server setting in proxysettings.groovy file

  • Set Proxy - sets the current proxy in the proxysettings.groovy file.

grails add-proxy client --host=proxy-server --port=4300 --username=guest --password=guest
grails set-proxy client

For example:

grails add-proxy myproxy --host=internet --port=8085
grails set-proxy myproxy

If you are using WINDOWS console then you will need to enclose parameters with double quotes.

grails add-proxy myproxy "--host=internet" "--port=8085"
grails set-proxy myproxy

Settings can then be verified in the proxysettings.groovy file. This file can be located in the .grails folder.


你可能感兴趣的:(Grails set proxy)