Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create new App

On your Windows command prompt, run this command to create a new OpenShift App.

...

Code Block
titleCreate new App
rhc app-create jogetv5 tomcat7 mysql-5.5 phpmyadmin

Set working environment variable for Joget Workflow

SSH into your App. If you need help getting SSH to work on Windows, please see Remote Connection (SSH).

...

Code Block
titleSet environment variable value
rhc env set JAVA_OPTS_EXT="-Djava.awt.headless=true -Dwflow.home=/var/lib/openshift/115e25277628e1c35b000238/app-root/data/" -a jogetv5

Obtaining Joget Workflow

In your PuTTY SSH session, Execute the following commands.

Code Block
export JOGET_VERSION=5.0.1
cd ~/app-root/data
wget http://dev.joget.org/downloads/enterprise/joget-enterprise-linux-$JOGET_VERSION.tar.gz
tar xvfz joget-enterprise-linux-$JOGET_VERSION.tar.gz
cd joget-enterprise-linux-$JOGET_VERSION;
apache-ant-1.7.1/bin/ant setup -Dprofile.name=default -Ddb.name=jwdb -Ddb.host=$OPENSHIFT_MYSQL_DB_HOST -Ddb.port=3306 -Ddb.user=$OPENSHIFT_MYSQL_DB_USERNAME -Ddb.password=$OPENSHIFT_MYSQL_DB_PASSWORD;
cp -rf wflow/ $OPENSHIFT_DATA_DIR/
mv apache-tomcat-8.0.20/webapps/jw* ~/jbossews/webapps/

Starting up Joget Workflow

Once we executed the last command earlier "mv apache-tomcat-8.0.20/webapps/jw* ~/jbossews/webapps/", Joget Workflow webapp is being initialized right away. You can monitor its deployment by tailing the server log.

Execute the following command to tail the server log in PuTTY.

Code Block
titleTail server log
tail $OPENSHIFT_LOG_DIR\jbossews.log -f

You will see the following messages with "Server startup in x ms" indicating that the new web app (Joget Workflow) has been deployed.

Code Block
titleLog messages
Jun 13, 2016 2:32:37 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive /var/lib/openshift/575e25277628e1c35b000238/app-root/runtime/dependencies/jbossews/webapps/jw.war has finished in 288,826 ms
Jun 13, 2016 2:32:37 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-127.4.8.1-8080"]
Jun 13, 2016 2:32:38 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 298636 ms