aboutsummaryrefslogtreecommitdiffhomepage
path: root/StartServer.sh
blob: c29ce23a17926fbe2c25b2e58dea0ed5492d880e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash -e
redis-server &
PIDS[0]=$!
node resources/assets/js/chatServer.js &
PIDS[1]=$!
php artisan queue:work & 
PIDS[2]=$!
php artisan serve &
PIDS[3]=$!
npm run watch &#> /dev/null 2>&1
PIDS[4]=$!

trap "kill ${PIDS[*]}" SIGINT

wait