Skip to content

Commit 0417d84

Browse files
committedSep 26, 2023
fix(configure): change localhost to 127.0.0.1
Closes adonisjs/core#4253
1 parent 14befae commit 0417d84

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎instructions.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -45,28 +45,28 @@ const DB_SERVER_PROMPT_CHOICES = [
4545
const DB_SERVER_ENV_VALUES = {
4646
sqlite: {},
4747
mysql: {
48-
MYSQL_HOST: 'localhost',
48+
MYSQL_HOST: '127.0.0.1',
4949
MYSQL_PORT: 3306,
5050
MYSQL_USER: 'lucid',
5151
MYSQL_PASSWORD: '',
5252
MYSQL_DB_NAME: 'lucid',
5353
},
5454
pg: {
55-
PG_HOST: 'localhost',
55+
PG_HOST: '127.0.0.1',
5656
PG_PORT: 5432,
5757
PG_USER: 'lucid',
5858
PG_PASSWORD: '',
5959
PG_DB_NAME: 'lucid',
6060
},
6161
oracle: {
62-
ORACLE_HOST: 'localhost',
62+
ORACLE_HOST: '127.0.0.1',
6363
ORACLE_PORT: 1521,
6464
ORACLE_USER: 'lucid',
6565
ORACLE_PASSWORD: '',
6666
ORACLE_DB_NAME: 'lucid',
6767
},
6868
mssql: {
69-
MSSQL_SERVER: 'localhost',
69+
MSSQL_SERVER: '127.0.0.1',
7070
MSSQL_PORT: 1433,
7171
MSSQL_USER: 'lucid',
7272
MSSQL_PASSWORD: '',
@@ -93,7 +93,7 @@ function getDbDrivers(sink: typeof sinkStatic) {
9393
.getPrompt()
9494
.multiple('Select the database driver you want to use', DB_SERVER_PROMPT_CHOICES, {
9595
validate(choices) {
96-
return choices && choices.length ? true : 'Select atleast one database driver to continue'
96+
return choices && choices.length ? true : 'Select at least one database driver to continue'
9797
},
9898
})
9999
}

0 commit comments

Comments
 (0)
Please sign in to comment.