mirror of
https://github.com/diced/zipline.git
synced 2025-05-10 18:05:54 +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',
|
||||
name: 'type',
|
||||
message: 'What database type?',
|
||||
message: 'What database type? (you will have to install the drivers)',
|
||||
choices: [
|
||||
{ name: 'postgres', extra: 'This is what we recomend using.' },
|
||||
{ name: 'cockroachdb' },
|
||||
{ name: 'mysql' },
|
||||
{ name: 'mariadb' },
|
||||
{ name: 'mssql' },
|
||||
{ name: 'sqlite3' }
|
||||
{ name: 'sqlite' }
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -103,14 +103,14 @@ const base = {
|
|||
name: 'theme',
|
||||
message: 'Theme',
|
||||
choices: [
|
||||
{ name: 'Dark Theme (recomended)' },
|
||||
{ name: 'Light Theme (warning for eyes)' }
|
||||
{ name: 'dark' },
|
||||
{ name: 'light' }
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'confirm',
|
||||
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.'
|
||||
);
|
||||
}
|
||||
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));
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue