Skip to content

Instantly share code, notes, and snippets.

@AaronO
Created March 26, 2014 07:47
Show Gist options
  • Save AaronO/9778461 to your computer and use it in GitHub Desktop.
Save AaronO/9778461 to your computer and use it in GitHub Desktop.

Installing

This script below downloads and sets up grails on your codebox VM:

#!/bin/bash

# Download and setup grails for Ubuntu
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get update
sudo apt-get install grails-ppa

# Add to each bash shell
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> ~/.bashrc

This script can be executed on your machine simply with :

curl "https://gist.githubusercontent.com/AaronO/9778391/raw/grails-setup.sh" | bash

After the script has finished simply open a new shell, and you should have the grails command and should be good to go.

Running

Now the grails command will be available and you can run it from the terminal as you are used to :

$ grails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment