mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 07:00:24 +03:00
Merge pull request #393 from FlowiseAI/feature/DB_PATH
Feature/Add DB_PATH
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
PORT=3000
|
||||
# FLOWISE_USERNAME=user
|
||||
# FLOWISE_PASSWORD=1234
|
||||
# DATABASE_PATH=/your_database_path/.flowise
|
||||
# EXECUTION_MODE=child or main
|
||||
@@ -8,6 +8,8 @@ services:
|
||||
- PORT=${PORT}
|
||||
- FLOWISE_USERNAME=${FLOWISE_USERNAME}
|
||||
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
|
||||
- DATABASE_PATH=${DATABASE_PATH}
|
||||
- EXECUTION_MODE=${EXECUTION_MODE}
|
||||
ports:
|
||||
- '${PORT}:${PORT}'
|
||||
volumes:
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
PORT=3000
|
||||
# FLOWISE_USERNAME=user
|
||||
# FLOWISE_PASSWORD=1234
|
||||
# DATABASE_PATH=/your_database_path/.flowise
|
||||
# EXECUTION_MODE=child or main
|
||||
@@ -31,14 +31,28 @@ FLOWISE_PASSWORD=1234
|
||||
|
||||
## 📖 Documentation
|
||||
|
||||
Coming Soon
|
||||
|
||||
## 💻 Cloud Hosted
|
||||
|
||||
Coming Soon
|
||||
[Flowise Docs](https://docs.flowiseai.com/)
|
||||
|
||||
## 🌐 Self Host
|
||||
|
||||
### [Railway](https://docs.flowiseai.com/deployment/railway)
|
||||
|
||||
[](https://railway.app/template/YK7J0v)
|
||||
|
||||
### [Render](https://docs.flowiseai.com/deployment/render)
|
||||
|
||||
[](https://docs.flowiseai.com/deployment/render)
|
||||
|
||||
### [AWS](https://docs.flowiseai.com/deployment/aws)
|
||||
|
||||
### [Azure](https://docs.flowiseai.com/deployment/azure)
|
||||
|
||||
### [DigitalOcean](https://docs.flowiseai.com/deployment/digital-ocean)
|
||||
|
||||
### [GCP](https://docs.flowiseai.com/deployment/gcp)
|
||||
|
||||
## 💻 Cloud Hosted
|
||||
|
||||
Coming Soon
|
||||
|
||||
## 🙋 Support
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -18,6 +18,7 @@ export default class Start extends Command {
|
||||
FLOWISE_USERNAME: Flags.string(),
|
||||
FLOWISE_PASSWORD: Flags.string(),
|
||||
PORT: Flags.string(),
|
||||
DATABASE_PATH: Flags.string(),
|
||||
EXECUTION_MODE: Flags.string()
|
||||
}
|
||||
|
||||
@@ -53,6 +54,7 @@ export default class Start extends Command {
|
||||
if (flags.FLOWISE_USERNAME) process.env.FLOWISE_USERNAME = flags.FLOWISE_USERNAME
|
||||
if (flags.FLOWISE_PASSWORD) process.env.FLOWISE_PASSWORD = flags.FLOWISE_PASSWORD
|
||||
if (flags.PORT) process.env.PORT = flags.PORT
|
||||
if (flags.DATABASE_PATH) process.env.DATABASE_PATH = flags.DATABASE_PATH
|
||||
if (flags.EXECUTION_MODE) process.env.EXECUTION_MODE = flags.EXECUTION_MODE
|
||||
|
||||
await (async () => {
|
||||
|
||||
Reference in New Issue
Block a user