log to project dir, add web.log to gitignore

This commit is contained in:
ViperEkura 2026-06-14 19:21:29 +08:00
parent 45adc385a0
commit fe997f6522
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ start_backend() {
start_frontend() { start_frontend() {
echo "=== Starting Frontend (opencode web) ===" echo "=== Starting Frontend (opencode web) ==="
cd "$PROJECT_DIR" cd "$PROJECT_DIR"
nohup opencode web --port 3000 > /tmp/opencode-web.log 2>&1 & nohup opencode web --port 3000 > "$PROJECT_DIR/web.log" 2>&1 &
echo "Frontend PID=$!" echo "Frontend PID=$!"
echo "Web interface: http://127.0.0.1:3000/" echo "Web interface: http://127.0.0.1:3000/"
} }