mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
Merge pull request #405 from FlowiseAI/feature/debugVerbose
Feature/Update ENV Variables
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
PORT=3000
|
PORT=3000
|
||||||
# FLOWISE_USERNAME=user
|
# FLOWISE_USERNAME=user
|
||||||
# FLOWISE_PASSWORD=1234
|
# FLOWISE_PASSWORD=1234
|
||||||
|
# DEBUG=true
|
||||||
# DATABASE_PATH=/your_database_path/.flowise
|
# DATABASE_PATH=/your_database_path/.flowise
|
||||||
# EXECUTION_MODE=child or main
|
# EXECUTION_MODE=child or main
|
||||||
@@ -10,6 +10,7 @@ services:
|
|||||||
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
|
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
|
||||||
- DATABASE_PATH=${DATABASE_PATH}
|
- DATABASE_PATH=${DATABASE_PATH}
|
||||||
- EXECUTION_MODE=${EXECUTION_MODE}
|
- EXECUTION_MODE=${EXECUTION_MODE}
|
||||||
|
- DEBUG=${DEBUG}
|
||||||
ports:
|
ports:
|
||||||
- '${PORT}:${PORT}'
|
- '${PORT}:${PORT}'
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
DEBUG=true
|
|
||||||
@@ -12,14 +12,6 @@ Install:
|
|||||||
npm i flowise-components
|
npm i flowise-components
|
||||||
```
|
```
|
||||||
|
|
||||||
## Debug
|
|
||||||
|
|
||||||
To view all the logs, create an `.env` file and add:
|
|
||||||
|
|
||||||
```
|
|
||||||
DEBUG=true
|
|
||||||
```
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Source code in this repository is made available under the [MIT License](https://github.com/FlowiseAI/Flowise/blob/master/LICENSE.md).
|
Source code in this repository is made available under the [MIT License](https://github.com/FlowiseAI/Flowise/blob/master/LICENSE.md).
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
PORT=3000
|
PORT=3000
|
||||||
# FLOWISE_USERNAME=user
|
# FLOWISE_USERNAME=user
|
||||||
# FLOWISE_PASSWORD=1234
|
# FLOWISE_PASSWORD=1234
|
||||||
|
# DEBUG=true
|
||||||
# DATABASE_PATH=/your_database_path/.flowise
|
# DATABASE_PATH=/your_database_path/.flowise
|
||||||
# EXECUTION_MODE=child or main
|
# EXECUTION_MODE=child or main
|
||||||
@@ -29,6 +29,10 @@ FLOWISE_USERNAME=user
|
|||||||
FLOWISE_PASSWORD=1234
|
FLOWISE_PASSWORD=1234
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 🔎 Debugging
|
||||||
|
|
||||||
|
You can set `DEBUG=true` to the `.env` file. Refer [here](https://docs.flowiseai.com/environment-variables) for full list of env variables
|
||||||
|
|
||||||
## 📖 Documentation
|
## 📖 Documentation
|
||||||
|
|
||||||
[Flowise Docs](https://docs.flowiseai.com/)
|
[Flowise Docs](https://docs.flowiseai.com/)
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ export default class Start extends Command {
|
|||||||
FLOWISE_USERNAME: Flags.string(),
|
FLOWISE_USERNAME: Flags.string(),
|
||||||
FLOWISE_PASSWORD: Flags.string(),
|
FLOWISE_PASSWORD: Flags.string(),
|
||||||
PORT: Flags.string(),
|
PORT: Flags.string(),
|
||||||
|
DEBUG: Flags.string(),
|
||||||
DATABASE_PATH: Flags.string(),
|
DATABASE_PATH: Flags.string(),
|
||||||
EXECUTION_MODE: Flags.string()
|
EXECUTION_MODE: Flags.string()
|
||||||
}
|
}
|
||||||
@@ -56,6 +57,7 @@ export default class Start extends Command {
|
|||||||
if (flags.PORT) process.env.PORT = flags.PORT
|
if (flags.PORT) process.env.PORT = flags.PORT
|
||||||
if (flags.DATABASE_PATH) process.env.DATABASE_PATH = flags.DATABASE_PATH
|
if (flags.DATABASE_PATH) process.env.DATABASE_PATH = flags.DATABASE_PATH
|
||||||
if (flags.EXECUTION_MODE) process.env.EXECUTION_MODE = flags.EXECUTION_MODE
|
if (flags.EXECUTION_MODE) process.env.EXECUTION_MODE = flags.EXECUTION_MODE
|
||||||
|
if (flags.DEBUG) process.env.DEBUG = flags.DEBUG
|
||||||
|
|
||||||
await (async () => {
|
await (async () => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user