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.
32 lines
549 B
32 lines
549 B
#!/bin/sh
|
|
|
|
npm install --force
|
|
|
|
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 server/server.js &
|
|
|
|
node src/server/server.js
|
|
|
|
|