Skip to content

Commit

Permalink
Use port from PORT env variable if available (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalIcing authored and kylecarbs committed Apr 17, 2019
1 parent 8a4da54 commit c4c2605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ commander.version(process.env.VERSION || "development")
.option("--data-dir <value>", "DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored.")
.option("-h, --host <value>", "Customize the hostname.", "0.0.0.0")
.option("-o, --open", "Open in the browser on startup.", false)
.option("-p, --port <number>", "Port to bind on.", 8443)
.option("-p, --port <number>", "Port to bind on.", parseInt(process.env.PORT, 10) || 8443)
.option("-N, --no-auth", "Start without requiring authentication.", undefined)
.option("-H, --allow-http", "Allow http connections.", false)
.option("-P, --password <value>", "Specify a password for authentication.")
Expand Down

0 comments on commit c4c2605

Please sign in to comment.