mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fix-postgres-password-input' into 'main'
Change setup.ts to use password input instead of plaintext See merge request soapbox-pub/ditto!492
This commit is contained in:
commit
4d0ae401b3
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ if (DATABASE_URL) {
|
||||||
const host = await question('input', 'Postgres host', 'localhost');
|
const host = await question('input', 'Postgres host', 'localhost');
|
||||||
const port = await question('input', 'Postgres port', '5432');
|
const port = await question('input', 'Postgres port', '5432');
|
||||||
const user = await question('input', 'Postgres user', 'ditto');
|
const user = await question('input', 'Postgres user', 'ditto');
|
||||||
const password = await question('input', 'Postgres password', 'ditto');
|
const password = await question('password', 'Postgres password', true);
|
||||||
const database = await question('input', 'Postgres database', 'ditto');
|
const database = await question('input', 'Postgres database', 'ditto');
|
||||||
vars.DATABASE_URL = `postgres://${user}:${password}@${host}:${port}/${database}`;
|
vars.DATABASE_URL = `postgres://${user}:${password}@${host}:${port}/${database}`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue