添加: 启动脚本
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
Product Manager 2026-03-10 10:05:31 +00:00
parent 25b1529c3e
commit 771c99e9dd

25
run.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/bash
echo "Starting CloudDisk..."
# Start backend
echo "Starting backend..."
cd backend
npm run dev &
BACKEND_PID=$!
# Wait a bit
sleep 2
# Open frontend
echo "Starting frontend..."
cd ../frontend
npm run dev &
FRONTEND_PID=$!
echo "CloudDisk started!"
echo "Backend PID: $BACKEND_PID"
echo "Frontend PID: $FRONTEND_PID"
# Wait for interrupt
trap "kill $BACKEND_PID $FRONTEND_PID; exit" INT TERM
wait