mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
WIP Multi-tenant architecture.
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
import knexManager from 'knex-db-manager';
|
||||
import knexfile from '@/../knexfile';
|
||||
import knexfile from '@/../config/systemKnexfile';
|
||||
import config from '@/../config/config';
|
||||
|
||||
const config = knexfile[process.env.NODE_ENV];
|
||||
const knexConfig = knexfile[process.env.NODE_ENV];
|
||||
|
||||
console.log({
|
||||
superUser: config.manager.superUser,
|
||||
superPassword: config.manager.superPassword,
|
||||
});
|
||||
const dbManager = knexManager.databaseManagerFactory({
|
||||
knex: config,
|
||||
knex: knexConfig,
|
||||
dbManager: {
|
||||
// db manager related configuration
|
||||
collate: [],
|
||||
superUser: 'root',
|
||||
superPassword: 'root',
|
||||
// populatePathPattern: 'data/**/*.js', // glob format for searching seeds
|
||||
superUser: config.manager.superUser,
|
||||
superPassword: config.manager.superPassword,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user