Skip to content

Deploy Steps

Jonathan Austin edited this page Dec 2, 2019 · 2 revisions

Overview

The samples are currently deployed to seperate applications on Heroku. After building a local copy of the samples, the three WAR files are deployed to their app on Heroku.

Build Local Copy

  1. git clone https://github.com/bordertech/wcomponents-samples.git (first time only)
  2. cd wcomponents-samples
  3. mvn install -Popenshift

Note - The openshift profile creates the sample war files with the correct names in the one location.

Heroku Deploy

Configure Heroku (first time only)

  1. Create an account on Heroku
  2. Get access to the wcomponents-sample apps (ask current wcomponents team member).
  3. Install the Heroku CLI.
  4. Install plugin to deploy war files to Tomcat. heroku plugins:install heroku-cli-deploy

Deploy to Heroku

  1. Goto wcomponents-samples directory.
  2. heroku war:deploy target/chart.war --app wcomponents-samples-chart --webapp-runner 8.5.9.0
  3. heroku war:deploy target/client.war --app wcomponents-samples-client --webapp-runner 8.5.9.0
  4. heroku war:deploy target/fileupload.war --app wcomponents-samples-fileupload --webapp-runner 8.5.9.0

Note - Requires JAVA 8 to run heroku deploy. Note - The '8.5.9.0' version of webapp-runner is specified as newer versions cause a issue with the JSR107 redis caching provider included in the runner.

Clone this wiki locally