JRebel with IBM Bluemix¶
Pushing any JRebel remote server enabled application (containing rebel-remote.xml
) to the Bluemix cloud platform will automatically download the latest version of JRebel and set it up for use.
Follow the tutorial below to get started with JRebel and Bluemix.
IBM Bluemix and JRebel remote server support tutorial¶
To get started, you need to sign up with Bluemix. Head over to IBM Bluemix Trial to get a free trial account. Once done, you’re ready to move on.
Download and install the Cloud Foundry (cf) command line interface.
Start up cf and set your API to work with Bluemix.
$ cf api https://api.ng.bluemix.net
Hint
Depending on your location, you might want to connect to the European region. To do this, connect to
https://api.eu-gb.bluemix.net
.Login to Bluemix using the account you created earlier.
$ cf login
Install and configure JRebel on your local workstation.
4.1 Using Eclipse? Install JRebel for Eclipse and configure JRebel remote server support.
4.2 Using IntelliJ IDEA? Install JRebel for IntelliJ IDEA and configure JRebel remote server support.
4.3 Using NetBeans? Install JRebel for NetBeans and configure JRebel remote server support.
Create a new file titled
manifest.yml
within the root folder of your project with the following content (replacing{APP_NAME}
and{webapp}
with your own application title and WAR file name):applications: - disk_quota: 1024M host: {APP_NAME} name: {APP_NAME} path: target/{webapp}.war domain: ng.mybluemix.net instances: 1 memory: 768M
Hint
Depending on your location, you might want to change the domain to the European region. To do this, specify
domain: eu-gb.bluemix.net
.Push your local application to Bluemix! Run the following command within your project root folder (the folder which contains
manifest.yml
).$ cf push {APP_NAME}
Warning
Make sure that the
rebel-remote.xml
on your local workstation and on Bluemix are identical!Now your application should be set up and running in Bluemix. You can check its status via the Bluemix Dashboard.
Configure your project’s remote server application URL in the IDE to reflect the Bluemix application URL. This should be
http://{APP_NAME}.ng.mybluemix.net/
.Press the Synchronize button in your IDE to upload any changes to Bluemix. Now simply refresh the application on the cloud platform and your changes should appear like clockwork! Success!