add lf end-lines in *.sh (#425)

### What problem does this PR solve?

link #279 #266 

### Type of change

- [x] Documentation Update

---------

Co-authored-by: writinwaters <93570324+writinwaters@users.noreply.github.com>
This commit is contained in:
ooo oo 2024-04-18 17:17:54 +08:00 committed by GitHub
parent ac574af60a
commit fe2f5205fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 5 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.sh text eol=lf

View File

@ -208,19 +208,20 @@ docker compose up ragflow -d
This exception occurs when starting up the RAGFlow server. Try the following:
1. Prolong the sleep time: Go to **docker/entrypoint.sh**, locate line 26, and replace `sleep 60` with `sleep 280`.
2. Go to **docker/docker-compose.yml**, add the following after line 109:
2. If using Windows, ensure that the **entrypoint.sh** has LF end-lines.
3. Go to **docker/docker-compose.yml**, add the following after line 109:
```
./entrypoint.sh:/ragflow/entrypoint.sh
```
3. Change directory:
4. Change directory:
```bash
cd docker
```
4. Stop the RAGFlow server:
5. Stop the RAGFlow server:
```bash
docker compose stop
```
5. Restart up the RAGFlow server:
6. Restart up the RAGFlow server:
```bash
docker compose up
```
@ -231,4 +232,4 @@ This exception occurs when starting up the RAGFlow server. Try the following:
1. Ensure that the RAGFlow server can access the base URL.
2. Do not forget to append **/v1/** to **http://IP:port**:
**http://IP:port/v1/**
**http://IP:port/v1/**