-
Notifications
You must be signed in to change notification settings - Fork 0
mgijax/mgd_java_api
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The pwi and mgi_java_api can be installed using mgiconfig and the manifest. The following instructions are for a manual (dev) install. Paths and other values are specific for bluebob. Adjust to suit. Installing/running the API: mgi_java_api depends on Java 17, maven 3.9.5, and need to connect to an mgd-schema database. Make sure all the relevant variables are are in mgiconfig: JAVA_HOME=/usr/java/jdk-17.0.8+7 MAVEN_HOME=/opt/apache-maven-3.9.5 PG_DBSERVER=bhmgidb06ld PG_DBNAME=jer_prod PG_DBUSER=mgd_dbo PG_1LINE_PASSFILE=/home/jer/work/mgi/dbutils/pgdbutilities/.pgpass_1 Clone the repo, cd to the top level directory, and checkout the desired branch. git clone [email protected]:mgijax/mgd_java_api.git cd mgd_java_api git checkout someBranch Copy the default config file and edit as needed. For dev, change LOG_DIR and/or LOG_FILE. cp Configuration.default Configuration vim Configuration LOG_DIR=/data/mgd_java_api/logs-jer Run the install. ./Install Hopefully you’ll see this: [INFO] BUILD SUCCESS Re-run after any config or code change. Start the API process. ./startApi.sh Hopefully you’ll see something like this: Starting Java API log file: /data/mgd_java_api/logs-jer/java_api.log Java API running. pid= 7781 # some pid Listening on port 8089 # your port here At this point, you should see the api running using ps and connect to the swagger interface. Note that the swagger URL has changed slightly: http://bhmgiapp01.jax.org:8099/swagger-ui To monitor the log: tail -f /data/mgd_java_api/logs-jer/java_api.log To stop the api: ./stopApi.sh Installing/running the PWI: To manually install the pwi git clone [email protected]:mgijax/pwi.git cd pwi if using a branch: git checkout yourBranch cp Configuration.default Configuration vim Configuration SERVER_PORT=5079 Install cd admin startserver.sh cat nohup.out to verify Run pwi and login: http://bhmgiapp01:5001/pwi/ Stop the pwi: cd pwi/admin stopserver.sh