Skip to content

Commit 1c6223e

Browse files
authored
Merge pull request #3 from contember/feat/respect-host-envs
fix(cli): respect DOTAZ_HOST and DOTAZ_PORT environment variables
2 parents f01e7dd + 4838b1e commit 1c6223e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const KEY_NAME = 'encryption-key'
1111

1212
const args = process.argv.slice(2)
1313

14-
let port = 6401
15-
let host = 'localhost'
14+
let port = Number(process.env.DOTAZ_PORT) || 6401
15+
let host = process.env.DOTAZ_HOST || 'localhost'
1616

1717
for (let i = 0; i < args.length; i++) {
1818
const arg = args[i]

0 commit comments

Comments
 (0)