From 78a766cb8661046b22db9b0ccd39faa9bb7254b5 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 8 Dec 2020 00:24:29 -0500 Subject: [PATCH] point curl to current directory target --- index.js | 2 +- routes/scale/curl.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index bb85422..5931139 100644 --- a/index.js +++ b/index.js @@ -118,7 +118,7 @@ server.get('/scale', bodyParser.json(), function(req, res) { // return; //} console.log(new Date().toISOString() + "-------------------------baseline build-----------------------------") - console.log(req.body); + console.log(JSON.stringify(req.body)); //parse the where clause into the main sql statement //sql = sql.replace(new RegExp("where_clause", 'g'), w) sql = sql.replace(new RegExp("app_pincr", 'g'), app_pincr); diff --git a/routes/scale/curl.sh b/routes/scale/curl.sh index 0593a07..ba05e34 100755 --- a/routes/scale/curl.sh +++ b/routes/scale/curl.sh @@ -1 +1 @@ -curl -H "Content-Type: application/json" -X GET -d@./routes/scale/req.json https://localhost:8082/scale --insecure > scale_final.sql +curl -H "Content-Type: application/json" -X GET -d@req.json https://localhost:8082/scale --insecure > scale_final.sql