JRebel for Cloud with Cloud Foundry

Pushing any JRebel remote server enabled application (containing rebel-remote.xml) to the Cloud Foundry will automatically download the latest version of JRebel and set it up for use.

Follow the tutorial below to get started with JRebel and Cloud Foundry.

Note

These instructions have been confirmed to work with Pivotal Cloud Foundry as well as SAP Cloud Foundry. The API login URL needs to be replaced based on the service provider.


JRebel for Cloud Tutorial

To get started, you need to sign up with Pivotal. Go to Pivotal Cloud Foundry to get a free trial account. Once done, you’re ready to move on.

  1. Download and install the Cloud Foundry (cf) command line interface.

  2. Login to Pivotal using the account you created earlier.

    $ cf login -a https://api.run.pivotal.io
    
  3. Install and configure JRebel on your local workstation.

    3.1 Using Eclipse? Install JRebel for Eclipse and configure JRebel for Cloud in Eclipse.

    3.2 Using IntelliJ IDEA? Install JRebel for IntelliJ IDEA and configure JRebel for Cloud in IntelliJ IDEA.

    3.3 Using NetBeans? Install JRebel for NetBeans and configure JRebel for Cloud in NetBeans.

  4. Push your local application to Pivotal Cloud Foundry. Run the following command within your project root folder:

    $ cf push {APP_NAME} -p target/{webapp}.war
    

    Warning

    Make sure that the rebel-remote.xml on your local workstation and on Pivotal Cloud Foundry are identical!

  5. Configure your project’s remote server application URL in the IDE to reflect the application URL on Pivotal.

  6. Press the Synchronize button in your IDE to upload any changes to Pivotal. Now refresh the application on the cloud platform for the changes to take effect.