Skip to content

Instantly share code, notes, and snippets.

@tomaslin
Created November 10, 2012 16:48
Show Gist options
  • Save tomaslin/4051664 to your computer and use it in GitHub Desktop.
Save tomaslin/4051664 to your computer and use it in GitHub Desktop.
Deploying your grails app to appfog
Get a free appfog account at http://www.appfog.com
Install the gem
sudo gem install af
Go to your app directory
1. Create a war file
grails war
2. login to appfog:
$ af login
Attempting login to [https://api.appfog.com]
Email: grails48xxx@mailinator.com
Password: ********
Successfully logged into [https://api.appfog.com]
$ af push
Would you like to deploy from the current directory? [Yn]: Y
Application Name: xxxappname
Detected a Standalone Application, is this correct? [Yn]: n
1: WSGI
2: Node
3: Rails
4: Standalone
5: Grails
6: Sinatra
7: Django
8: JavaWeb
9: Play
10: Rack
11: Erlang/OTP Rebar
12: Spring
13: PHP
14: Lift
Select Application Type: 5
Selected Java SpringSource Grails Application
1: AWS US East - Virginia
2: AWS EU West - Ireland
3: AWS Asia SE - Singapore
4: Rackspace AZ 1 - Dallas
5: HP AZ 2 - Las Vegas
Select Infrastructure: 1
Application Deployed URL [xxxappname.aws.af.cm]:
Memory reservation (128M, 256M, 512M, 1G, 2G) [512M]: 2G
How many instances? [1]: 1
Create services to bind to 'commutenbananas'? [yN]: N
Would you like to save this configuration? [yN]: y
Manifest written to manifest.yml.
3. Update your app whenever something changes
$ grails war
$ af update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment