Skip to content

Commit

Permalink
feat(server): add hostname option
Browse files Browse the repository at this point in the history
  • Loading branch information
Jepoy authored and jagregory committed Apr 29, 2020
1 parent 7c8b658 commit 0365f3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { createDefaultServer } from "../server";

createDefaultServer()
.then((server) => {
const hostname = process.env.HOST || "localhost";
const port = parseInt(process.env.PORT || "9229", 10);
return server.start({ port });
return server.start({ hostname, port });
})
.then((options) => {
console.log(
Expand Down

0 comments on commit 0365f3a

Please sign in to comment.