Name: nci-webtools-dceg-classification
Owner: NCI CBIIT Development Sandbox
Description: null
Created: 2015-04-15 02:44:36.0
Updated: 2017-05-11 18:48:32.0
Pushed: 2017-06-08 19:38:26.0
Homepage: null
Size: 255299
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Created by Sue Pan, last modified on Jul 02, 2015
SOCcer is composed of two applications: webapp and client. Therefore, there are two build.xml files. Read the following instructions thoroughly before deploying both applications.
Git link: https://github.com/CBIIT/nci-webtools-dceg-classification.git
-rf nci-webtools-dceg-classification.old
nci-webtools-dceg-classification nci-webtools-dceg-classification.old
t clone https://github.com/CBIIT/nci-webtools-dceg-classification.git
Working directory: nci-webtools-dceg-classification/soccer/webapp
Define the following variables when executing ant deploy command:
occer.domain.name=soccer-dev.nci.nih.gov // Modify soccer domain name accordingly (dev, stage, prod)
omee.dir=/local/content/tomee // The installation folder of TomEE plus
occer.dir=/local/content/soccer // Soccer related folder
ov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict // The folder of WordNet dictionary
ov.nih.cit.soccer.rscript=/usr/bin/Rscript // Whereis Rscript command
For example,
t -Dsoccer.domain.name=soccer-dev.nci.nih.gov -Dtomee.dir=/local/content/tomee -Dsoccer.dir=/local/content/soccer -Dgov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict -Dgov.nih.cit.soccer.rscript=/usr/bin/Rscript deploy
Note: Please make sure the directories reference in the build properties are already created and exist on the server. Ant deploy compiles the source codes, generates soccer.war and tomee.xml files, then copies the soccer.war to
rvice tomee restart
Working directory: nci-webtools-dceg-classification/soccer/client
Define the following variables when executing ant deploy command:
occer.domain.name=soccer-dev.nci.nih.gov // Modify soccer domain name accordingly (dev, stage, prod)
omee.dir=/local/content/tomee // The installation folder of TomEE plus
occer.dir=/local/content/soccer // Soccer related folder
occer.remote.web.port=80 // The port# to access SOCcer web application through the soccer.domain.name defined above
ov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict // The folder of WordNet dictionary
ov.nih.cit.soccer.rscript=/usr/bin/Rscript // Whereis Rscript command
eploy.target.dir=/local/content/soccer // Where to deploy the client application
For example,
$ ant -Dsoccer.domain.name=soccer-dev.nci.nih.gov -Dtomee.dir=/local/content/tome -Dsoccer.dir=/local/content/soccer -Dsoccer.remote.web.port=80 -Dgov.nih.cit.soccer.wordnet.dir=/local/content/soccer/dict -Dgov.nih.cit.soccer.rscript=/usr/bin/Rscript -Ddeploy.target.dir=/local/content/soccer deploy
Note: Please make sure the directories reference in the build properties are already created and exist on the server. Ant deploy compiles the source codes, copies all the artifacts in the dist folder to the target folder designated by -Ddeploy.target.dir above, and if the OS is Linux/Unix, adds execute (+x) permission to the jcmd.sh script.
rvice soccer stop
rvice soccer start
il -f /local/content/soccer/soccer.log
If you are able to see the following message: “INFO: Request to run every <10> seconds.“, congratulations, the client application is running well.