mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
add DATABSE_PATH
This commit is contained in:
@@ -128,7 +128,7 @@ export class ChildProcess {
|
|||||||
* @returns {DataSource}
|
* @returns {DataSource}
|
||||||
*/
|
*/
|
||||||
async function initDB() {
|
async function initDB() {
|
||||||
const homePath = path.join(getUserHome(), '.flowise')
|
const homePath = process.env.DATABASE_PATH ?? path.join(getUserHome(), '.flowise')
|
||||||
const childAppDataSource = new DataSource({
|
const childAppDataSource = new DataSource({
|
||||||
type: 'sqlite',
|
type: 'sqlite',
|
||||||
database: path.resolve(homePath, 'database.sqlite'),
|
database: path.resolve(homePath, 'database.sqlite'),
|
||||||
|
|||||||
Reference in New Issue
Block a user