add db_path

This commit is contained in:
Henry
2023-06-22 15:47:03 +01:00
parent bee16d4982
commit dd328dcd51
6 changed files with 27 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ import { getUserHome } from './utils'
let appDataSource: DataSource
export const init = async (): Promise<void> => {
const homePath = path.join(getUserHome(), '.flowise')
const homePath = process.env.DATABASE_PATH ?? path.join(getUserHome(), '.flowise')
appDataSource = new DataSource({
type: 'sqlite',