Launch 'grails run-app' with options:
-v | --grails-version Specify grails version
-r | --remote-host Run 'grails run-app' with -Dserver.host={your-ip} option
-p | --port Run 'grails run-app' with -Dserver.port={value}
-h | --help Display help
Redefine gr_home
variable on the first line. It should target $GRAILS_HOME
parent folder:
gr_home="$HOME/dev"
> ./run.sh -r -p 9090
will run => grails -Dserver.host={your-ip} -Dserver.port=9090 run-app
> ./run.sh -v 1.3.8
will set GRAILS_HOME
to 1.3.8 before running => grails run-app