File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,6 +132,12 @@ OpenSearch (for search/indexing), and Moqui itself.
132132Start the server in the background and wait for it to be ready:
133133
134134``` bash
135+ # IMPORTANT: Stop any existing server first to avoid port conflicts
136+ pkill -f " gradlew run"
137+ # Also kill any java process using port 8080 (in case Gradle spawned it)
138+ kill $( ss -tlnp 2> /dev/null | grep :8080 | grep -oP ' pid=\K\d+' | head -1) 2> /dev/null || true
139+ sleep 2
140+
135141# Start server in background (output goes to /tmp/moqui-server.log)
136142nohup ./gradlew run > /tmp/moqui-server.log 2>&1 &
137143
@@ -166,6 +172,7 @@ ps aux | grep "gradlew run" | grep -v grep | awk '{print $2}' | xargs kill
166172```
167173
168174** Notes:**
175+ - ** ALWAYS stop any existing server before starting** to avoid port 8080 conflicts
169176- ` ./gradlew run ` does NOT auto-start OpenSearch - start it manually first with
170177 ` ./gradlew startElasticSearch `
171178- Server logs available in ` /tmp/moqui-server.log ` AND in ` runtime/log/moqui.log `
You can’t perform that action at this time.
0 commit comments