Skip to content

Commit 0db2af0

Browse files
Merge remote-tracking branch 'upstream/develop' into develop
2 parents 6a7a76b + e36f80f commit 0db2af0

File tree

13 files changed

+1495
-2181
lines changed

13 files changed

+1495
-2181
lines changed

flushall_build_and_run.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Script to flush Redis, build the project, and run Jetty
4+
#
5+
# This script should be run from the OBP-API root directory:
6+
# cd /path/to/OBP-API
7+
# ./flushall_build_and_run.sh
8+
9+
set -e # Exit on error
10+
11+
echo "=========================================="
12+
echo "Flushing Redis cache..."
13+
echo "=========================================="
14+
redis-cli <<EOF
15+
flushall
16+
exit
17+
EOF
18+
19+
if [ $? -eq 0 ]; then
20+
echo "Redis cache flushed successfully"
21+
else
22+
echo "Warning: Failed to flush Redis cache. Continuing anyway..."
23+
fi
24+
25+
echo ""
26+
echo "=========================================="
27+
echo "Building and running with Maven..."
28+
echo "=========================================="
29+
export MAVEN_OPTS="-Xss128m"
30+
mvn install -pl .,obp-commons && mvn jetty:run -pl obp-api

0 commit comments

Comments
 (0)