Skip to content

Instantly share code, notes, and snippets.

@junlapong
Created August 30, 2012 03:02
Show Gist options
  • Select an option

  • Save junlapong/3521921 to your computer and use it in GitHub Desktop.

Select an option

Save junlapong/3521921 to your computer and use it in GitHub Desktop.
GRAILS
:: D:\grails\setenv.bat
-------------------------------------------------------------------------------
@echo off
SET GRAILS_HOME=D:\grails\grails-1.3.9
:: SET GRAILS_HOME=D:\grails\grails-2.1.0
SET PATH=%GRAILS_HOME%\bin;D:\grails;%PATH%
:: GRAILS COMMAND ::
echo cd D:\path\to\workspace
echo grails create-app app-name
echo cd app-name
echo grails run-app
echo grails -Dserver.port=9090 run-app
echo grails clean
echo grails compile
echo grails upgrade
echo grails install-plugin plugin-name
echo grails install-plugin plugin-name 1.1.1
echo grails install-plugin d:\grails\plugin\grails-plugin-name-1.1.1.zip
echo grails uninstall-plugin plugin-name
echo grails list-plugin-updates
echo grails install-templates
echo grails war app-name.war
echo grails war app-name.war --nojars
echo grails war D:\path\app-name.zip
:: D:\grails\g.bat
-------------------------------------------------------------------------------
@echo off
:: echo %JAVA_OPTS%
if "%JAVA_OPTS%" == "" set JAVA_OPTS=-Xmx128m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=256m
SET PROXY=-Dhttp.proxyHost=proxy.domain.com
SET PROXY=%PROXY% -Dhttp.proxyPort=8080
SET PROXY=%PROXY% -Dhttp.proxyUser=username
SET PROXY=%PROXY% -Dhttp.proxyPassword=password
:: grails %*
grails %PROXY% %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment