forked from sourcegraph/training-java-monolith-refactor
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathliberty-dev.sh
More file actions
executable file
·33 lines (26 loc) · 889 Bytes
/
Copy pathliberty-dev.sh
File metadata and controls
executable file
·33 lines (26 loc) · 889 Bytes
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
#!/bin/bash
# Liberty Development Server Startup Script
# This script starts the Liberty server in development mode
echo "Starting Big Bad Monolith on WebSphere Liberty..."
echo "======================================================="
# Build the application first
echo "Building application..."
./gradlew clean build
if [ $? -ne 0 ]; then
echo "Build failed. Please check the errors above."
exit 1
fi
# Start Liberty in development mode
echo "Starting Liberty server in development mode..."
echo "🌐 Web Interface: http://localhost:9080/big-bad-monolith"
echo "🐛 Debug Port: Automatically configured by libertyDev"
echo ""
echo "Development mode features:"
echo " ✅ Automatic reload on code changes"
echo " ✅ Automatic test execution"
echo " ✅ Debug support"
echo ""
echo "Press Ctrl+C to stop the server"
echo ""
./gradlew libertyDev
echo "Server stopped."