You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
633 B
33 lines
633 B
#!/bin/sh
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
if lsof -Pi :3000 -sTCP:LISTEN -t >/dev/null; then
|
|
# Tuer le processus associé au port
|
|
pid=$(lsof -Pi :3000 -sTCP:LISTEN -t)
|
|
kill -9 $pid
|
|
fi
|
|
|
|
|
|
if lsof -Pi :3002 -sTCP:LISTEN -t >/dev/null; then
|
|
# Tuer le processus associé au port
|
|
pid=$(lsof -Pi :3002 -sTCP:LISTEN -t)
|
|
kill -9 $pid
|
|
fi
|
|
|
|
if lsof -Pi :3003 -sTCP:LISTEN -t >/dev/null; then
|
|
# Tuer le processus associé au port
|
|
pid=$(lsof -Pi :3003 -sTCP:LISTEN -t)
|
|
kill -9 $pid
|
|
fi
|
|
|
|
|
|
npm start &
|
|
|
|
node $SCRIPT_DIR/../server/socket_io/server.js &
|
|
|
|
node $SCRIPT_DIR/../server/api/server.js
|
|
|
|
|