From 1239e57c72696bc2c7fafab3ecaee7d512ce9ae0 Mon Sep 17 00:00:00 2001 From: nickgarlis Date: Sun, 29 Sep 2019 23:12:18 +0300 Subject: [PATCH 1/3] Try with now.json --- now.json | 10 ++++++++++ package.json | 12 +----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 now.json diff --git a/now.json b/now.json new file mode 100644 index 0000000..40f1320 --- /dev/null +++ b/now.json @@ -0,0 +1,10 @@ +{ + "name": "probot-profanity", + "alias": "probot-profanity.now.sh", + "scale": { + "sfo1": { + "min": 1, + "max": 1 + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index dc7020b..626f887 100644 --- a/package.json +++ b/package.json @@ -47,15 +47,5 @@ "profanity", "inappropriate", "bot" - ], - "now": { - "name": "probot-profanity", - "alias": "probot-profanity.now.sh", - "scale": { - "sfo1": { - "min": 1, - "max": 1 - } - } - } + ] } From b0eb5ca4940652e75f07e52ec067bec00d3a0c4e Mon Sep 17 00:00:00 2001 From: nickgarlis Date: Mon, 30 Sep 2019 21:38:19 +0200 Subject: [PATCH 2/3] Add env variables --- now.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/now.json b/now.json index 40f1320..9e6bf0c 100644 --- a/now.json +++ b/now.json @@ -1,10 +1,10 @@ { "name": "probot-profanity", "alias": "probot-profanity.now.sh", - "scale": { - "sfo1": { - "min": 1, - "max": 1 - } + "env": { + "APP_ID": "@app_id", + "WEBHOOK_SECRET": "@webhook_secret", + "NODE_ENV": "@node_env", + "PRIVATE_KEY": "@private_key" } -} \ No newline at end of file +} From bff2c4d46b109783e5823b1652959dfb60236a29 Mon Sep 17 00:00:00 2001 From: nickgarlis Date: Thu, 10 Oct 2019 19:28:53 +0200 Subject: [PATCH 3/3] Work around a possible now bug by adding a fake build script --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 626f887..108720c 100644 --- a/package.json +++ b/package.json @@ -11,12 +11,13 @@ "scripts": { "start": "probot run ./index.js", "test": "jest && standard", + "build": "echo $NODE_ENV", "deploy": "node ./deploy.js" }, "dependencies": { "bad-words-relaxed": "github:Jared-Sprague/bad-words-relaxed", "joi": "^13.3.0", - "now": "^11.2.1", + "now": "^16.3.1", "probot": "^6.2.1", "probot-config": "^0.1.0", "probot-scheduler": "^1.0.3",