CloudBees
Dependency :
compile ":cloud-bees:0.6.2"
Summary
Adds a set of scripts that allow standalone integration with the CloudBees client API.
Installation
grails install-plugin cloud-bees
Description
CloudBees Plugin
Description
CloudBees provides Platform as a Service for Java that offers a complete end-to-end environment, from development to production. As a Java (and hence, Groovy & Grails) developer, you can more easily create quality software by putting your code into the DEV@cloud build system, and from there instantly publishing your application to the cloud using RUN@cloud for Java.This operation requires interaction with the CloudBees API through their SDK. This plugin exposes the CloudBees SDK API through a series of command line scripts. The CloudBees SDK does not need to be installed on your box for this to work. Simply install the plugin and start invoking commands to the cloud.Application Configuration
Go to the CloudBees website and set up an account, then insert the following configuration in your ~/.grails/settings.groovy or BuildConfig.groovy:cloudbees.account='CLOUD_BEES_ACCOUNT' cloudbees.api.key='CLOUD_BEES_API_KEY' cloudbees.api.secret='CLOUD_BEES_API_SECRET'
cloudbees.permgensize = 128
Commands
All commands are issued prefixed by the grails command, or in the interactive shell. e.ggrails bees-app-list
bees-app-delete [appId] bees-app-deploy [appId] [tag] bees-app-info [appId] bees-app-list bees-app-restart [appId] bees-app-start [appId] bees-app-stop [appId] bees-app-tail [LOGNAME] [appId]bees-db-create [dbId] [username] [password] bees-db-drop [dbId] bees-db-info [dbId] bees-db-list bees-db-set-password [dbId]bees-db-snapshot-list [dbId] bees-db-snapshot-create [dbId] [title] bees-db-snapshot-deploy <snapshotId> [dbId] bees-db-snapshot-delete <snapshotId> [dbId]bees-config-list [type] [appId] bees-config-set <name1=value1,name2=value2> [type] [appId] bees-config-unset [type] [appId]
$ grails help bees-app-deploy
…
Environment set to development grails bees-app-deploy -- Deploy a new version of an application using a WAR archive file.Usage (optionals in square brackets):grails bees-app-deploy [appId] [tag]
appId : application id (defaults to application name)
tag : release tag (defaults to application version)Don't forget to run the war command before running bees-app-deploy. The bees-app-deploy command doesn't build the war itself.