Mostly Grails tips from Code Panda

Deploying Ratpack Applications to Cloud Foundry with no custom buildpack

Instead of using the Heroku buildpack, we can easily deploy ratpack applications into Cloud Foundry using the built-in java 7 support.

Since the Gradle application plugin builds a complete Java application, we can simply upload this application to Cloud Foundry and run it.

The one difference between this approach and a buildpack-based one is that you build the application in your local machine and deploy the files to Cloud Foundry instead of trying to do it all remotely.

3 thoughts on “Deploying Ratpack Applications to Cloud Foundry with no custom buildpack”

Thanks for this post! Just a couple of notes:
– cloudfoundry.com -> run.pivotal.io… which is a Pivotal-operated instance of the Cloud Foundry code. cloudfoundry.com is now the project home rather than a hosted version of the runtime.
– sorry for the delays in approving new accounts on run.pivotal.io. We have been bringing new accounts on in batches (we have been seeing huge demand, and wanted to ensure that our v1 users from the old service were happy first). Hopefully this will speed up over time 🙂

I think the steps in this article needs at least a small update with the launch command, which seems to be following a different convention now, so the command build/install/server/bin/server needs to have the “server” part replaced with the name of the project root dir, or the project name if one has specified it in settings.gradle with rootProject.name = ‘myappname’

Anyhow, I invariable get the infamous message:
Application failed to stage