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

Commit

Permalink
Merge pull request #3523 from trufflesuite/db-host
Browse files Browse the repository at this point in the history
Allow configuring host for `truffle db serve`
  • Loading branch information
gnidan authored and g. nicholas d'andrea committed Feb 5, 2021
2 parents c5cb8bf + 62ecda1 commit bc91ea9
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 bc91ea9

Please sign in to comment.