Joget DX Preview Release Available for Download

Check out Joget DX, the next generation successor to Joget Workflow for faster, simpler digital transformation.

Page tree
Skip to end of metadata
Go to start of metadata

创建新的应用程序

Windows命令提示符下,运行此命令以创建新的OpenShift应用程序。

我们将该应用程序称为jogetv5。您可以更改为您喜欢的名称。我们正在创建应用程序时安装3个运行时环境(tomcat7 mysql-5.5 phpmyadmin)。

创建新的应用程序
rhc app-create jogetv5 tomcat7 mysql-5.5 phpmyadmin
Execution output
Using jbossews-2.0 (Tomcat 7 (JBoss EWS 2.0)) for 'tomcat7'
Using phpmyadmin-4 (phpMyAdmin 4.0) for 'phpmyadmin'
Application Options
-------------------
Domain:     yourAccount
Cartridges: jbossews-2.0, mysql-5.5, phpmyadmin-4
Gear Size:  default
Scaling:    no
Creating application 'jogetv5' ... done
  MySQL 5.5 database added.  Please make note of these credentials:
       Root User: admin
   Root Password: 1234
   Database Name: jogetv5
Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
You can manage your new MySQL database by also embedding phpmyadmin.
The phpmyadmin username and password will be the same as the MySQL credentials above.
Please make note of these MySQL credentials again:
  Root User: admin
  Root Password: 1234
URL: https://jogetv5-yourAccount.rhcloud.com/phpmyadmin/
Waiting for your DNS name to be available ... done
Cloning into 'jogetv5'...
Warning: Permanently added the RSA host key for IP address '54.175.209.46' to the list of known hosts.
remote: Counting objects: 41, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 41 (delta 1), reused 41 (delta 1)
Receiving objects: 100% (41/41), 51.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (1/1), done.
Checking connectivity... done.
Your application 'jogetv5' is now available.
  URL:        http://jogetv5-yourAccount.rhcloud.com/
Run 'rhc show-app jogetv5' for more details about your app.

为Joget Workflow设置工作环境变量

.SSH进入你的应用程序。如果您需要帮助SSH在Windows上工作,请参阅  远程连接(SSH)

PuTTY SSH会话中,执行以下命令。

获取环境变量值
echo ${OPENSHIFT_DATA_DIR}

将打印一行。复制值。

获取环境变量值
echo ${OPENSHIFT_DATA_DIR}
/var/lib/openshift/115e25277628e1c35b000238/app-root/data/

返回到Windows命令提示符,先复制该值并将下面的命令放入Dwflow.home变量中。记得把你的App名字放在最后。

设置环境变量值
rhc env set JAVA_OPTS_EXT="-Djava.awt.headless=true -Dwflow.home=/var/lib/openshift/115e25277628e1c35b000238/app-root/data/wflow/" -a jogetv5
Execution output
Setting environment variable(s) ... done

获取Joget工作流程

 PuTTY SSH会话中,执行以下命令

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/

启动Joget Workflow

一旦我们执行了之前的最后一个命令“mv apache-tomcat-8.0.20/ webapps/ jw *〜/ jbossews / webapps/”,就会立即初始化Joget Workflow webapp。

但是,强烈建议我们首先重新启动服务器,以确保一切都能持久运行。

在Windows命令提示符中发出以下命令。

重启应用
rhc app-restart jogetv5

您可以通过服务器日志来监视其Web服务器的部署。

执行以下命令以在PuTTY中尾随服务器日志。

服务器日志
tail $OPENSHIFT_LOG_DIR\jbossews.log -f

您将看到以下消息,其中“服务器启动时间为x ms”表示已部署新的Web应用程序(Joget Workflow)。

记录消息
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

服务器启动后,您现在可以通过指向指定的URL浏览到Web浏览器中的Joget Workflow(例如https://jogetv5-yourAccount.rhcloud.com/jw/)

 
 
  • No labels