Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

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

ooo oofe2f5205fc3b
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..526c8a38d4
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.sh text eol=lf
\ No newline at end of file
diff --git a/docs/faq.md b/docs/faq.md
index 7ac92c7d2a..729d0f0922 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -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/**
\ No newline at end of file
+ **http://IP:port/v1/**