Selaa lähdekoodia

debug/chat: increase notify error duration to 3000 (#2778)

tags/0.5.9
Eric Wang 1 vuosi sitten
vanhempi
commit
fdd211e399
No account linked to committer's email address
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 3
    3
      api/README.md
  2. 1
    1
      web/app/components/app/configuration/debug/index.tsx

+ 3
- 3
api/README.md Näytä tiedosto

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
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
``` ```
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

+ 1
- 1
web/app/components/app/configuration/debug/index.tsx Näytä tiedosto



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…
Peruuta
Tallenna