added stop start files and testing multivendor support
This commit is contained in:
22
start-servers.sh
Executable file
22
start-servers.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
echo "Starting CVE Dashboard servers..."
|
||||
|
||||
# Start backend
|
||||
cd backend
|
||||
nohup node server.js > backend.log 2>&1 &
|
||||
BACKEND_PID=$!
|
||||
echo "Backend started (PID: $BACKEND_PID)"
|
||||
|
||||
# Start frontend
|
||||
cd ../frontend
|
||||
nohup npm start > frontend.log 2>&1 &
|
||||
FRONTEND_PID=$!
|
||||
echo "Frontend started (PID: $FRONTEND_PID)"
|
||||
|
||||
# Save PIDs
|
||||
echo $BACKEND_PID > ../backend.pid
|
||||
echo $FRONTEND_PID > ../frontend.pid
|
||||
|
||||
echo "✓ Both servers running in background"
|
||||
echo " Backend: http://localhost:3001"
|
||||
echo " Frontend: http://localhost:3000"
|
||||
Reference in New Issue
Block a user