mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix: Ensure server port is free before startup by killing existing processes.
This commit is contained in:
@@ -75,6 +75,10 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
|
||||
echo ""
|
||||
# Garante que a porta está livre antes de iniciar (build pode ter ocupado)
|
||||
fuser -k $PORT/tcp 2>/dev/null
|
||||
sleep 1
|
||||
|
||||
echo "🚀 Iniciando servidor na porta $PORT..."
|
||||
LOG_FILE="/tmp/omniroute.log"
|
||||
> "$LOG_FILE"
|
||||
|
||||
Reference in New Issue
Block a user