/OM-Dashboard-Server

OpenMediation Dashboard Server

Primary LanguageJavaGNU Lesser General Public License v3.0LGPL-3.0

OpenMediation Dashboard Server

OpenMediation Dashboard Server provides API services for OM-Dashboard-UI.

Usage

Packaging

You can package using mvn.

mvn clean package -Dmaven.test.skip=true

After packaging is complete, you can find "om-ds-server.jar" in the directory "target".
"om-ds-server.jar" is a executable jar, see springboot

Configuration

"om-ds-server.conf"

## springboot cfg ###
MODE=service
APP_NAME=om-ds-server
#JAVA_HOME=/usr/local/java/jdk
JAVA_OPTS="-Dapp=$APP_NAME\
 -Duser.timezone=UTC\
 -Xmx3g\
 -Xms1g\
 -server"

RUN_ARGS="--spring.profiles.active=prod"
PID_FOLDER=log
LOG_FOLDER=log
LOG_FILENAME=stdout.log

Run

put "om-ds-server.conf" and "om-ds-server.jar" in the same directory.

├── om-ds-server.conf
├── om-ds-server.jar
└── log
mkdir -p log
./om-ds-server.jar start

Logs

tail -f log/stdout.log

Stop

./om-ds-server.jar stop

Restart

./om-ds-server.jar restart