Restart the CardMaker Express server. This is needed after any change to server source files (the server does NOT auto-reload when started with npx tsx src/index.ts).
Template HTML/CSS changes do NOT require a restart — they are read from disk on every render.
Steps
- •
Find the server process on port 3001:
bashnetstat -ano | findstr "LISTENING" | findstr ":3001"
- •
Kill the process:
bashtaskkill //PID <pid> //F
Use
//PIDnot/PID(Git Bash on Windows). - •
Start the server as a background process:
bashcd /c/Users/mikes/Documents/CardMaker/server && npx tsx src/index.ts
- •
Confirm it prints "Cardstock server running on http://localhost:3001".