grailsgroovygrails-3.0cloud-foundry

Running Grails 3.0 on Cloud Foundry


Hope you can Help me!.

I am trying to deploy a basic grails 3.0 application to Cloud Foundry but this does not work.

This application is a web services container, I executed this command:

./grails create-app myapiapp3--profile=web-api

and when running locally on my windows 7 machine it works perfectly.

I have added a manifest.yml file with the app settings:

---
applications:
- name: myapiapp3
  memory: 1024M
  host: my-api-app
  domain: cfapps.io
  buildpack: java_buildpack

and deploy the application to cloud foundry using this command:

cf push

But It shows me the following error:

enter image description here

Maybe I need to do some extra stuff here, I have not experience working with Cloud foundry and Just started to work with Grails 3.0.

Somebody can help me please?

Thank you.


Solution

  • According to the docs the Java buildpack treats Grails apps the same as Servlet apps so you will need to generate a WAR file from your app first.

    This is done using: ./grailsw war