mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:27:05 +00:00
flushall_build_and_run only liftweb run once again
This commit is contained in:
parent
b9ca1591f4
commit
17f9677f1d
@ -1,13 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Script to flush Redis, build the project, and run both Jetty and http4s servers
|
# Script to flush Redis, build the project, and run Jetty
|
||||||
#
|
#
|
||||||
# This script should be run from the OBP-API root directory:
|
# This script should be run from the OBP-API root directory:
|
||||||
# cd /path/to/OBP-API
|
# cd /path/to/OBP-API
|
||||||
# ./flushall_build_and_run.sh
|
# ./flushall_build_and_run.sh
|
||||||
#
|
|
||||||
# The http4s server will run in the background on port 8081
|
|
||||||
# The Jetty server will run in the foreground on port 8080
|
|
||||||
|
|
||||||
set -e # Exit on error
|
set -e # Exit on error
|
||||||
|
|
||||||
@ -30,29 +27,4 @@ echo "=========================================="
|
|||||||
echo "Building and running with Maven..."
|
echo "Building and running with Maven..."
|
||||||
echo "=========================================="
|
echo "=========================================="
|
||||||
export MAVEN_OPTS="-Xss128m --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED"
|
export MAVEN_OPTS="-Xss128m --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED"
|
||||||
mvn install -pl .,obp-commons
|
mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "=========================================="
|
|
||||||
echo "Building http4s runner..."
|
|
||||||
echo "=========================================="
|
|
||||||
export MAVEN_OPTS="-Xms3G -Xmx6G -XX:MaxMetaspaceSize=2G"
|
|
||||||
mvn -pl obp-http4s-runner -am clean package -DskipTests=true -Dmaven.test.skip=true
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "=========================================="
|
|
||||||
echo "Starting http4s server in background..."
|
|
||||||
echo "=========================================="
|
|
||||||
java -jar obp-http4s-runner/target/obp-http4s-runner.jar > http4s-server.log 2>&1 &
|
|
||||||
HTTP4S_PID=$!
|
|
||||||
echo "http4s server started with PID: $HTTP4S_PID (port 8081)"
|
|
||||||
echo "Logs are being written to: http4s-server.log"
|
|
||||||
echo ""
|
|
||||||
echo "To stop http4s server later: kill $HTTP4S_PID"
|
|
||||||
echo ""
|
|
||||||
|
|
||||||
echo "=========================================="
|
|
||||||
echo "Starting Jetty server (foreground)..."
|
|
||||||
echo "=========================================="
|
|
||||||
export MAVEN_OPTS="-Xss128m --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED"
|
|
||||||
mvn jetty:run -pl obp-api
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user