From 5e0457d051ebc2060243103f62548d62c2fca134 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 8 Apr 2021 19:19:56 +0200 Subject: [PATCH] Added procfile --- Procfile | 1 + package.json | 2 +- src/platforms/csetforetell-fetch.js | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Procfile diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..6184e0c --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: node .src/utils/index.js diff --git a/package.json b/package.json index bd90ab0..5688226 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "Get forecasts from various platforms", "main": "src/index.js", "scripts": { - "start": "node src/index.js", + "start": "node src/utils/index.js", "test": "echo \"Error: no test specified\" && exit 1" }, "repository": { diff --git a/src/platforms/csetforetell-fetch.js b/src/platforms/csetforetell-fetch.js index d510680..3679832 100644 --- a/src/platforms/csetforetell-fetch.js +++ b/src/platforms/csetforetell-fetch.js @@ -161,6 +161,7 @@ export async function csetforetell(){ console.log(question) results.push(question) } catch(error){ + console.log(error) console.log(`We encountered some error when fetching the URL: ${url}, so it won't appear on the final json`) } }