summaryrefslogtreecommitdiff
path: root/run-dev.sh
blob: f8fb773d39bfe4d84a10223deb6346a96e661406 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

# sh install-site.sh

echo "killing processes on port 3001 and 3000..."
sudo fuser -ki 3001/tcp
sudo fuser -ki 3000/tcp

sleep 1

cd backend
echo 'starting backend...'
tmux new-session -s backend -d "cd api && zig build && ./zig-out/bin/axonbox-backend --domain http://localhost:9000"
echo 'starting chat api...'
tmux split-window -h -t backend "cd instance && npm run start -- -c 20000 --no-wget-verify"

tmux attach -t backend

echo 'running.'