The purpose of this article is to explain the necessary steps to deploy an application to IBM Cloud. By using the Deploy Applications tool, it is possible to run Java applications on IBM Cloud.
A Cloud Foundry app using the IBM Cloud console needs to be defined. See Deploying to IBM Cloud prerequisites for detailed information on this topic.
1. Before making a deployment, you must configure your Data Store to connect to the database. See Configuring a GeneXus environment to be deployed on IBM Cloud.
2. Run a Build All.
3. Go to the Build menu and select the Deploy Application option.
4. On the Deployment screen:
1. Select the Main objects to be included in the deployment.
2. In Target, select the option "IBM Cloud (Cloud Foundry)" (*).
3. Set the following properties as indicated below:
- User: Enter your IBM Cloud account.
- Password: Enter your password.
- Organization: Associated to the Cloud account.
- Space: Defined for the IBM Cloud organization.
- Application: The Cloud Foundry application previously defined (step 1)
After selecting the main objects and configuring the necessary properties for the automatic deployment, press the Deploy button. It will build the WAR package, as well as upload and deploy it in IBM Cloud.
You'll see an output similar to the following:
API endpoint: https://api.ng.bluemix.net (API version: 2.54.0)
User: sjuarez@genexus.com
Org: genexus.com
Space: GENEXUS-INVESTIGACION
Deploy:
cf push SummerReading -b liberty-for-java -p C:\Models\SummerReading2\SummerReading2\Deploy\JavaMySQL013\Bluemix\20160826102928\..\SummerReading2_20160826102928.war
Updating app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as sjuarez@genexus.com...
OK
Uploading SummerReading...
Done uploading
Stopping app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as sjuarez@genexus.com...
OK
Starting app SummerReading in org genexus.com / space GENEXUS-INVESTIGACION as sjuarez@genexus.com...
-----> Downloaded app package (21M)
-----> Downloaded app buildpack cache (336K)
You can check the Application URL, Status and Configuration from the IBM Cloud console.
For example, the URL could be: https://summerreading.mybluemix.net/servlet/com.summerreading2.patternconsole.mainconsolepanel.
If you've selected the "Only Package" checkbox, the WAR package is copied to the local file system, from where you can deploy it manually to IBM Cloud.
here for monitoring a java application on IBM Cloud, with JMX.
(*) IBM Cloud was formerly known as IBM Bluemix