|
|
@ -1,8 +1,12 @@
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
node server/server.js &
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node src/server/server.js
|
|
|
|
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
|
|
|
|
if lsof -Pi :3002 -sTCP:LISTEN -t >/dev/null; then
|
|
|
|
# Tuer le processus associé au port
|
|
|
|
# Tuer le processus associé au port
|
|
|
@ -15,3 +19,12 @@ if lsof -Pi :3003 -sTCP:LISTEN -t >/dev/null; then
|
|
|
|
pid=$(lsof -Pi :3003 -sTCP:LISTEN -t)
|
|
|
|
pid=$(lsof -Pi :3003 -sTCP:LISTEN -t)
|
|
|
|
kill -9 $pid
|
|
|
|
kill -9 $pid
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
npm start &
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node server/server.js &
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
node src/server/server.js
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|