Here's how to get a bare Grails application up and running:
Go to Apps in the control panel and create a new 'custom app listening on port' application. Name it as you please and make a note of the port number assigned to the app. For this example, I'll name it 'hello_grails'.
Edit a website record, or add a new one, to host your grails app. Let's say that we will host this app at ilias.webfactional.com
Login to your server via SSH and download Grails source and place it to the lib directory.
ln -s grails-2.0.0 grails
Edit your .bashrc file with your favourite editor and add the following exports:
This should make your grails executable available:
$ grails -version
Grails version: 2.0.0
Create a new grails app and start your server:
grails create-app hello_grails
grails -Dserver.port=YOUR_PORT run-app &
Visit your website at http://ilias.webfactional.com/hello_grails and you'll be welcomed with a friendly Grails page.
Of course, serving your website from the developer server is not a best practice, and while it might handle a small amount of traffic, it would be better export a war file of your application and deploy it using a servlet like Tomcat.
19 Jan '12, 11:20