testTodoS5
Thomas Chazot 1 year ago
parent 32529ab480
commit bd6b3e7067

@ -1,8 +1,12 @@
#!/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
# Tuer le processus associé au port
@ -14,4 +18,13 @@ 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
fi
npm start &
node server/server.js &
node src/server/server.js

@ -557,7 +557,7 @@ const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleS
}
if (a==indices.length){
//networkData.nodes.update({id: p.getId(), label: p.getName() + "\n🔵"})
//console.log(p)
console.log(p)
}
});

Loading…
Cancel
Save