We provide a variety of services including:

·          Training classes for Spring, Hibernate and Acegi Security

·          Jumpstarts to get your project off to the right start

·          Reviews to improve your architecture, code and development process

For more information visit our website: http://www.chrisrichardson.net

Home > Knowledge > EC2

Using the CloudTools Grails Plugin

Cloud Tools provides a Grails plugin for deploying a Grails application project to EC2 . Currently, you can download the plugin from here. Install the plugin using "grails install-plugin pathOrUrlToPlugin"

The plugin is implemented using EC2Deploy and so you need to follow some of it's setup instructions. Most notably, you must first create an aws.properties file.

Configuration

Installing the plugin creates a file called CloudTools.groovy in the grails-app/conf directory. You must edit this file to match your setup including specifying the location of the aws.properties file.

Using the plugin

Once you have configured the plugin you can use the following commands:

grails cloud-tools-deploy  Launches EC2 instances and deploys the web application
grails cloud-tools-describe Displays information about the instances
grails cloud-tools-redeploy Redeploys the web application and restarts tomcat
grails cloud-tools-stop Terminates the EC2 instances