azat-co / expressworks

Learn Express.js from the author of one of the best books on Express.js—Pro Express.js— with this workshop that will teach you basics of Express.js.
MIT License
709 stars 220 forks source link

good old form: does method--get vs. post matter? #18

Closed franklingu closed 10 years ago

franklingu commented 10 years ago

Verifying "GOOD OLD FORM"...

ACTUAL EXPECTED


"Express.js rocks!" != "Cannot POST /form"

FAIL

when change app.post to app.get, the solution passed but it should not be the case

ivanoats commented 10 years ago

Yes, it seems like it's expecting GET, which is not right. I looked in the repo here and it looks like setup.js for that problem is o.k.

UPDATE: I found that by restarting the server on port 3001 I could move past the error.

I just ran ps aux | grep node to see which node process was still running from expressworks. Killed that one and then the solution worked.

azat-co commented 10 years ago

for some reason workshopper (the framework that we use) leaves processes hanging out there (on crashes?) so ps aux | grep 'node' and killall node should help