This sub-generator allows to deploy automatically your JHipster application to a Cloud Foundry PaaS.
It works with MySQL, PostgreSQL and MongoDB cloud providers.
As this sub-generator uses the Cloud Foundry command-line tool, it can deploy to all Cloud Foundry instances:
Before running the sub-generator, you need to install the cf Command Line Interface (CLI), and have a Cloud Foundry account created.
To deploy your application to Cloud Foundry, type:
yo jhipster:cloudfoundry
This should package your application (in production or development mode), create a Cloud Foundry application (with a database), upload your code, and start the application.
When your application is already deployed, you can re-deploy it by building it normally by running:
With Maven: ./mvn -Pprod package cf push -f ./deploy/cloudfoundry/manifest.yml -p target/*.war
./mvn -Pprod package
cf push -f ./deploy/cloudfoundry/manifest.yml -p target/*.war
With Gradle: ./gradlew -Pprod bootRepackage cf push -f ./deploy/cloudfoundry/manifest.yml -p build/libs/*.war
./gradlew -Pprod bootRepackage
cf push -f ./deploy/cloudfoundry/manifest.yml -p build/libs/*.war
You can also run the sub-generator again, by typing another time: