-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
73 lines (55 loc) · 2.06 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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