diff --git a/boot.js b/boot.js index 8992cd25..a745b9ba 100644 --- a/boot.js +++ b/boot.js @@ -6,10 +6,11 @@ const { exec } = require('child_process'); // Displays version of Node JS being used at runtime and others attributes. -console.log(`[GB Runtime] NodeJS = ${process.version}`); -console.log(`[GB Runtime] platform = ${process.platform}`); -console.log(`[GB Runtime] argv = ${process.argv}`); -console.log(`[GB Runtime] debugPort = ${process.debugPort}`); +console.log(`[GB Runtime] NodeJS = ${process.version}`); +console.log(`[GB Runtime] platform = ${process.platform}`); +console.log(`[GB Runtime] architecture = ${process.arch}`); +console.log(`[GB Runtime] argv = ${process.argv}`); +console.log(`[GB Runtime] debugPort = ${process.debugPort}`); var now = () => { return (new Date()).toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC'; diff --git a/packages/core.gbapp/services/GBCoreService.ts b/packages/core.gbapp/services/GBCoreService.ts index 18f3c4d2..4371468d 100644 --- a/packages/core.gbapp/services/GBCoreService.ts +++ b/packages/core.gbapp/services/GBCoreService.ts @@ -261,7 +261,7 @@ STORAGE_SYNC=true fs.existsSync('node_modules/ngrok/bin/ngrok')) { const ngrok = require('ngrok'); - return await ngrok.connectRetry({ port: port }, 10); + return await ngrok.connect({ port: port }, 10); } else { GBLog.warn('ngrok executable not found (only tested on Windows). Check installation or node_modules folder.'); diff --git a/src/app.ts b/src/app.ts index 488e6d01..eaa40b62 100644 --- a/src/app.ts +++ b/src/app.ts @@ -127,6 +127,7 @@ export class GBServer { GBLog.info(`Establishing a development local proxy (ngrok)...`); GBServer.globals.publicAddress = await core.ensureProxy(port); + process.env.BOT_URL = GBServer.globals.publicAddress; } } else { const serverAddress = process.env.BOT_URL;