guitar-strings-123 / capstone-project

0 stars 1 forks source link

port errors #219

Closed bryceAM closed 1 year ago

bryceAM commented 1 year ago

I can connect to localhost:3000 and get feedback in the console based on my most recent changes to the front end. I think this is because React uses port 3000 for hot-reloading. I can also connect to localhost:4000 and see the front end, but not get feedback in the console to my most recent changes to the front end.

bryceAM commented 1 year ago

Solution

I had my old branch running on port 3000. I found it by typing lsof -i :3000. I typed kill pid number. Restarted my server and React app. Now whenever I stop my React app and Express server I can't connect to an already-running app. Solved

lsof -i :3000
kill 12734