mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 10:15:57 +08:00
debug/chat: increase notify error duration to 3000 (#2778)
This commit is contained in:
parent
7001e21e7d
commit
fdd211e399
@ -5,7 +5,7 @@
|
|||||||
1. Start the docker-compose stack
|
1. Start the docker-compose stack
|
||||||
|
|
||||||
The backend require some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using `docker-compose`.
|
The backend require some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using `docker-compose`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd ../docker
|
cd ../docker
|
||||||
docker-compose -f docker-compose.middleware.yaml -p dify up -d
|
docker-compose -f docker-compose.middleware.yaml -p dify up -d
|
||||||
@ -15,7 +15,7 @@
|
|||||||
3. Generate a `SECRET_KEY` in the `.env` file.
|
3. Generate a `SECRET_KEY` in the `.env` file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
openssl rand -base64 42
|
sed -i "/^SECRET_KEY=/c\SECRET_KEY=$(openssl rand -base64 42)" .env
|
||||||
```
|
```
|
||||||
3.5 If you use annaconda, create a new environment and activate it
|
3.5 If you use annaconda, create a new environment and activate it
|
||||||
```bash
|
```bash
|
||||||
@ -46,7 +46,7 @@
|
|||||||
```
|
```
|
||||||
pip install -r requirements.txt --upgrade --force-reinstall
|
pip install -r requirements.txt --upgrade --force-reinstall
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Start backend:
|
6. Start backend:
|
||||||
```bash
|
```bash
|
||||||
flask run --host 0.0.0.0 --port=5001 --debug
|
flask run --host 0.0.0.0 --port=5001 --debug
|
||||||
|
@ -130,7 +130,7 @@ const Debug: FC<IDebug> = ({
|
|||||||
|
|
||||||
const { notify } = useContext(ToastContext)
|
const { notify } = useContext(ToastContext)
|
||||||
const logError = useCallback((message: string) => {
|
const logError = useCallback((message: string) => {
|
||||||
notify({ type: 'error', message })
|
notify({ type: 'error', message, duration: 3000 })
|
||||||
}, [notify])
|
}, [notify])
|
||||||
const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])
|
const [completionFiles, setCompletionFiles] = useState<VisionFile[]>([])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user