Skip to content

Commit 0e9c142

Browse files
committed
Add prompt for database hostname
1 parent 08fddc7 commit 0e9c142

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cli/prompts.js

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ module.exports = {
5959
});
6060
}
6161

62+
if (!opts.host || opts.host === 'localhost') {
63+
prompts.push({
64+
message: 'What is the hostname of your database server?',
65+
name: 'host',
66+
validate: Boolean,
67+
default: 'localhost'
68+
});
69+
}
70+
6271
if (!opts.database) {
6372
prompts.push({
6473
message: 'What is the name of the database?',

0 commit comments

Comments
 (0)