File size: 244 Bytes
abc493d
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")/../api"

# Free port 3000 if already in use
if fuser 3000/tcp &>/dev/null; then
  echo "[API] Port 3000 in use — stopping existing process..."
  fuser -k 3000/tcp
  sleep 1
fi

npm run start:dev