Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Allow configuring host for truffle db serve
Browse files Browse the repository at this point in the history
  • Loading branch information
g. nicholas d'andrea committed Feb 5, 2021
1 parent c5cb8bf commit 62ecda1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/lib/commands/db/commands/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ const command = {

const config = Config.detect(argv);
const port = (config.db && config.db.port) || 4444;
const host = (config.db && config.db.host) || "127.0.0.1";

const {url} = await serve(config).listen({port});
const {url} = await serve(config).listen({host, port});

console.log(`🚀 Playground listening at ${url}`);
console.log(`ℹ Press Ctrl-C to exit`);
Expand Down

0 comments on commit 62ecda1

Please sign in to comment.