diff --git a/cryptide_project/startServers.sh b/cryptide_project/social_graph.sh similarity index 62% rename from cryptide_project/startServers.sh rename to cryptide_project/social_graph.sh index 5b070e4..2697c2f 100755 --- a/cryptide_project/startServers.sh +++ b/cryptide_project/social_graph.sh @@ -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 \ No newline at end of file +fi + + +npm start & + +node server/server.js & + +node src/server/server.js + + diff --git a/cryptide_project/src/Components/GraphContainer.tsx b/cryptide_project/src/Components/GraphContainer.tsx index 838a929..945b4e3 100644 --- a/cryptide_project/src/Components/GraphContainer.tsx +++ b/cryptide_project/src/Components/GraphContainer.tsx @@ -557,7 +557,7 @@ const MyGraphComponent: React.FC = ({onNodeClick, handleS } if (a==indices.length){ //networkData.nodes.update({id: p.getId(), label: p.getName() + "\n🔵"}) - //console.log(p) + console.log(p) } });