From c7103369f7f58b12e9d26c0611b0f6f0384feea1 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Wed, 1 Apr 2020 23:58:32 +0000 Subject: [PATCH] Use port 5000 for login / ignore it on Gitpod --- .gitpod.yml | 3 +++ index.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 56e2ac69..4f0be795 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,3 +3,6 @@ tasks: github: prebuilds: addBadge: true +ports: + - port: 5000-5010 + onOpen: ignore \ No newline at end of file diff --git a/index.js b/index.js index 90f66bdd..a2ce0e5d 100644 --- a/index.js +++ b/index.js @@ -63,7 +63,7 @@ exports.login = async function(options) { // find a callback URL on the local machine try { - tempUrl = await capture.callback(); + tempUrl = await capture.callback(5000); } catch (error) { // console.error("Failed to find suitable port.", error.message) // TODO: Is it? Try triggering error