From c4b193a31e6feb08c488fd64e7da0d3f285015d1 Mon Sep 17 00:00:00 2001 From: Mars Hall Date: Wed, 13 Mar 2019 11:57:34 -0700 Subject: [PATCH] Deploy to Heroku --- README.md | 14 ++++++++++++-- app.json | 10 ++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 app.json diff --git a/README.md b/README.md index b8f6b4d..cc71911 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,24 @@ A simple web listener that logs complete HTTP requests for inspection. Usage ----- +[![Deploy to Heroku](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) + +Once deployed, follow the Heroku app logs using the [CLI](https://devcenter.heroku.com/articles/heroku-cli) to inspect incoming requests: + +```bash +heroku logs --tail --app $APP_NAME +``` + +### Local Usage + Clone this repo, then inside of it: ``` npm install -npm start +PORT=3333 npm start ``` -Then, watch the output as requests arrive: +Then, watch the output to inspect incoming requests: ``` > reqinspeq@1.0.0 start /Users/mars.hall/Projects/reqinspeq diff --git a/app.json b/app.json new file mode 100644 index 0000000..876dbb4 --- /dev/null +++ b/app.json @@ -0,0 +1,10 @@ +{ + "name": "reqinspeq", + "description": "A simple web listener that logs complete HTTP requests for inspection", + "keywords": [ + "http", + "debug", + "tools" + ], + "repository": "https://github.com/mars/reqinspeq.git" +}