mirror of
https://github.com/diced/zipline.git
synced 2025-05-11 10:26:05 +02:00
fix #59
This commit is contained in:
parent
1529eb3afd
commit
701e5ae2d0
1 changed files with 6 additions and 5 deletions
11
setup.js
11
setup.js
|
@ -48,14 +48,14 @@ const base = {
|
||||||
{
|
{
|
||||||
type: 'list',
|
type: 'list',
|
||||||
name: 'type',
|
name: 'type',
|
||||||
message: 'What database type?',
|
message: 'What database type? (you will have to install the drivers)',
|
||||||
choices: [
|
choices: [
|
||||||
{ name: 'postgres', extra: 'This is what we recomend using.' },
|
{ name: 'postgres', extra: 'This is what we recomend using.' },
|
||||||
{ name: 'cockroachdb' },
|
{ name: 'cockroachdb' },
|
||||||
{ name: 'mysql' },
|
{ name: 'mysql' },
|
||||||
{ name: 'mariadb' },
|
{ name: 'mariadb' },
|
||||||
{ name: 'mssql' },
|
{ name: 'mssql' },
|
||||||
{ name: 'sqlite3' }
|
{ name: 'sqlite' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -103,14 +103,14 @@ const base = {
|
||||||
name: 'theme',
|
name: 'theme',
|
||||||
message: 'Theme',
|
message: 'Theme',
|
||||||
choices: [
|
choices: [
|
||||||
{ name: 'Dark Theme (recomended)' },
|
{ name: 'dark' },
|
||||||
{ name: 'Light Theme (warning for eyes)' }
|
{ name: 'light' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'mfa',
|
name: 'mfa',
|
||||||
message: 'Enable MFA with Authy/Google Authenticator'
|
message: 'Enable 2 Factor Authentication with Authy/Google Authenticator'
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -165,6 +165,7 @@ const base = {
|
||||||
'Head to https://zipline.diced.wtf/docs/docker to learn how to run with docker.'
|
'Head to https://zipline.diced.wtf/docs/docker to learn how to run with docker.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (config.database.type !== "postgres") console.log(`please head to https://zipline.diced.wtf/docs/config/getting-started#database to see what drivers you need to install for ${config.database.type}`);
|
||||||
|
|
||||||
writeFileSync('Zipline.toml', stringify(config));
|
writeFileSync('Zipline.toml', stringify(config));
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue