ooo oo
writinwaters
commited on
Commit
·
af9205c
1
Parent(s):
ca3cca9
add lf end-lines in `*.sh` (#425)
Browse files### What problem does this PR solve?
link #279 #266
### Type of change
- [x] Documentation Update
---------
Co-authored-by: writinwaters <[email protected]>
- .gitattributes +1 -0
- docs/faq.md +6 -5
.gitattributes
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*.sh text eol=lf
|
docs/faq.md
CHANGED
@@ -208,19 +208,20 @@ docker compose up ragflow -d
|
|
208 |
This exception occurs when starting up the RAGFlow server. Try the following:
|
209 |
|
210 |
1. Prolong the sleep time: Go to **docker/entrypoint.sh**, locate line 26, and replace `sleep 60` with `sleep 280`.
|
211 |
-
2.
|
|
|
212 |
```
|
213 |
./entrypoint.sh:/ragflow/entrypoint.sh
|
214 |
```
|
215 |
-
|
216 |
```bash
|
217 |
cd docker
|
218 |
```
|
219 |
-
|
220 |
```bash
|
221 |
docker compose stop
|
222 |
```
|
223 |
-
|
224 |
```bash
|
225 |
docker compose up
|
226 |
```
|
@@ -231,4 +232,4 @@ This exception occurs when starting up the RAGFlow server. Try the following:
|
|
231 |
|
232 |
1. Ensure that the RAGFlow server can access the base URL.
|
233 |
2. Do not forget to append **/v1/** to **http://IP:port**:
|
234 |
-
**http://IP:port/v1/**
|
|
|
208 |
This exception occurs when starting up the RAGFlow server. Try the following:
|
209 |
|
210 |
1. Prolong the sleep time: Go to **docker/entrypoint.sh**, locate line 26, and replace `sleep 60` with `sleep 280`.
|
211 |
+
2. If using Windows, ensure that the **entrypoint.sh** has LF end-lines.
|
212 |
+
3. Go to **docker/docker-compose.yml**, add the following after line 109:
|
213 |
```
|
214 |
./entrypoint.sh:/ragflow/entrypoint.sh
|
215 |
```
|
216 |
+
4. Change directory:
|
217 |
```bash
|
218 |
cd docker
|
219 |
```
|
220 |
+
5. Stop the RAGFlow server:
|
221 |
```bash
|
222 |
docker compose stop
|
223 |
```
|
224 |
+
6. Restart up the RAGFlow server:
|
225 |
```bash
|
226 |
docker compose up
|
227 |
```
|
|
|
232 |
|
233 |
1. Ensure that the RAGFlow server can access the base URL.
|
234 |
2. Do not forget to append **/v1/** to **http://IP:port**:
|
235 |
+
**http://IP:port/v1/**
|