Deploying the REST BookStore Application

The following steps describe how to deploy the application to your Cloud Foundry environment.

Procedure

  1. Log into your Cloud Foundry environment using the cf command-line interface.
  2. Copy the manifest file from the samples directory to the location where you placed your EAR file in the previous section.
  3. Edit the path variable in the manifest.yml file and set the path to the location of the EAR file.
    Check the CUPS service name, it should match with the service in your Cloud Foundry environment.
    As the manifest file contains the service name, the postgres service instance will automatically bind to this application at deployment.
  4. Save the file.
  5. In your Cloud Foundry environment change to the directory where you placed your EAR file.
  6. Execute
    cf push -f manifest.yml
    
    
    To see the log output use the command cf logs <application name> --recent
    For example,
    ch logs tibco.bwce.sample.binding.rest.BookStore.application --recent
    
    

    If the application deploys successfully, you will see similar output in the console log.

    bookstoreapp started 1/1 1G 1G bookstoreapp.tibcoqa.com