diff options
Diffstat (limited to 'StartServer.sh')
-rw-r--r-- | StartServer.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/StartServer.sh b/StartServer.sh index 62c29fd..cc9f3e1 100644 --- a/StartServer.sh +++ b/StartServer.sh @@ -1,2 +1,15 @@ -#!/bin/bash -node resources/assets/js/chatServer.js
\ No newline at end of file +#!/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 & +PIDS[4]=$! + +trap "kill ${PIDS[*]}" SIGINT + +wait
\ No newline at end of file |