2 Getting Started - Reference Documentation
Authors: Burt Beckwith
Version: 1.2.3
2 Getting Started
The first step is to install the plugin.
Ideally, add the plugin dependency intoBuildConfig.groovy. It is important that the plugin is scoped as compile, otherwise you may get some unexpected problems if you are letting the plugin manage your datasource config:plugins {
compile ':cloud-foundry:1.2.3'
}grails install-plugin cloud-foundry
grails-app/conf/Config.groovy, or an external config file referenced from Config.groovy, or in $HOME/.grails/settings.groovy:grails.plugin.cloudfoundry.username = 'your.email@server.com' grails.plugin.cloudfoundry.password = 's3kr3t'
grails.plugin.cloudfoundry.appname property:grails.plugin.cloudfoundry.appname = 'my-cool-app'
If you're using the spring-security-core and/or the resources plugins, be sure to use a recent version (1.2.7+ for spring-security-core and 1.1.6+ for resources) and add an explicit dependency for the webxml plugin to BuildConfig.groovy to ensure that your application deploys correctly:There are other configuration options, but next you'll want to provision some services and deploy your application. See section 4 Deploying applications for details on that.compile ':webxml:1.4.1'