chore: organize logs into logs/ directory with startup scripts
- Moved momentry_3002.log, momentry_3003.log to logs/ - Moved 34 nohup_worker_*.log files to logs/ - Created run-server-3002.sh, run-server-3003.sh for easy startup - Updated AGENTS.md with log paths and startup scripts - logs/ already excluded by *.log in .gitignore
This commit is contained in:
28
run-server-3003.sh
Executable file
28
run-server-3003.sh
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
# Start playground server on port 3003
|
||||
# Logs to logs/momentry_3003.log
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "$SCRIPT_DIR"
|
||||
|
||||
# Kill existing server on port 3003
|
||||
PID=$(lsof -ti :3003 2>/dev/null || true)
|
||||
if [ -n "$PID" ]; then
|
||||
echo "Killing existing server on port 3003 (PID: $PID)"
|
||||
kill "$PID" 2>/dev/null || true
|
||||
sleep 2
|
||||
fi
|
||||
|
||||
# Build if needed
|
||||
if [ ! -f target/debug/momentry_playground ]; then
|
||||
echo "Building playground binary..."
|
||||
cargo build --bin momentry_playground
|
||||
fi
|
||||
|
||||
# Start server
|
||||
echo "Starting momentry_playground server on port 3003..."
|
||||
./target/debug/momentry_playground server --port 3003 > logs/momentry_3003.log 2>&1 &
|
||||
echo "Server started (PID: $!)"
|
||||
echo "Logs: logs/momentry_3003.log"
|
||||
Reference in New Issue
Block a user