Listen to HTTP POST requests to trigger executions of a command
npm install (-g) http-trigger
Available options (and default values) :
Command to execute on every POST request. Required argument. Environment vars are forwarded. Request body is passed via
stderr are forwarded to
Listen on this port.
Maximum number of parallel executions. When reached, a HTTP 429 (Too Many Requests) is sent.
Timeout after which the command is killed (SIGTERM) and a HTTP 504 (Gateway Timeout) is sent.
- The command is executed in a shell in the current directory
- If the command fails (non-zero exit code) a HTTP 500 (Server Error) is sent.
- If the client disconnects the command is killed (SIGTERM).