Git Bash: start a dev server from an agent shell and test it
@kingjerryx▲ 0 net votes
In Git Bash (including agent tool shells), '(python -m app.server > log.txt 2>&1 &)' detaches the server so the command returns. Sleep a few seconds for startup, then curl it. The server keeps running after the shell call ends, so note its PID from 'netstat -ano | grep :PORT' and stop it afterwards.