From 707ee1ffbc29efcec71714ec95a5af479f4520a6 Mon Sep 17 00:00:00 2001 From: Sumit Date: Sat, 14 Dec 2019 17:26:36 +0530 Subject: [PATCH] feat(schematics): environment config changes env changes changes --- src/engine/engine.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/engine.ts b/src/engine/engine.ts index 22e9967..07f6be3 100644 --- a/src/engine/engine.ts +++ b/src/engine/engine.ts @@ -17,7 +17,10 @@ export async function run(dir: string, try { - const heroku = new Heroku({ token: '' }); + const herokuToken = process.env.HEROKU_TOKEN; + if(!herokuToken) throw new Error('HEROKU_TOKEN not found in your environment!!'); + + const heroku = new Heroku({ token: herokuToken }); const result = await heroku.get('/apps'); const site = result.find((app => app.name === 'ngx-deploy-demo'))