Merge pull request #405 from FlowiseAI/feature/debugVerbose

Feature/Update ENV Variables
This commit is contained in:
Henry Heng 2023-06-24 00:32:25 +01:00 committed by GitHub
commit 554c0a900d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,6 @@
PORT=3000
# FLOWISE_USERNAME=user
# FLOWISE_PASSWORD=1234
# DEBUG=true
# DATABASE_PATH=/your_database_path/.flowise
# EXECUTION_MODE=child or main

View File

@ -10,6 +10,7 @@ services:
- FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
- DATABASE_PATH=${DATABASE_PATH}
- EXECUTION_MODE=${EXECUTION_MODE}
- DEBUG=${DEBUG}
ports:
- '${PORT}:${PORT}'
volumes:

View File

@ -1 +0,0 @@
DEBUG=true

View File

@ -12,14 +12,6 @@ Install:
npm i flowise-components
```
## Debug
To view all the logs, create an `.env` file and add:
```
DEBUG=true
```
## License
Source code in this repository is made available under the [MIT License](https://github.com/FlowiseAI/Flowise/blob/master/LICENSE.md).

View File

@ -1,5 +1,6 @@
PORT=3000
# FLOWISE_USERNAME=user
# FLOWISE_PASSWORD=1234
# DEBUG=true
# DATABASE_PATH=/your_database_path/.flowise
# EXECUTION_MODE=child or main

View File

@ -29,6 +29,10 @@ FLOWISE_USERNAME=user
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
[Flowise Docs](https://docs.flowiseai.com/)

View File

@ -18,6 +18,7 @@ export default class Start extends Command {
FLOWISE_USERNAME: Flags.string(),
FLOWISE_PASSWORD: Flags.string(),
PORT: Flags.string(),
DEBUG: Flags.string(),
DATABASE_PATH: 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.DATABASE_PATH) process.env.DATABASE_PATH = flags.DATABASE_PATH
if (flags.EXECUTION_MODE) process.env.EXECUTION_MODE = flags.EXECUTION_MODE
if (flags.DEBUG) process.env.DEBUG = flags.DEBUG
await (async () => {
try {