Spaces:
Runtime error
Runtime error
fix apache2 sub-path deploy issue #544
Browse files- docs/WithFastapi.md +28 -0
docs/WithFastapi.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Running with fastapi
|
| 2 |
+
|
| 3 |
+
We currently support fastapi in order to solve sub-path deploy issue.
|
| 4 |
+
|
| 5 |
+
1. checkout to `subpath` branch
|
| 6 |
+
|
| 7 |
+
``` sh
|
| 8 |
+
git checkout subpath
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
2. merge lastest features (optional)
|
| 13 |
+
|
| 14 |
+
``` sh
|
| 15 |
+
git merge master
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
3. change CUSTOM_PATH setting in `config.py`
|
| 19 |
+
|
| 20 |
+
``` sh
|
| 21 |
+
nano config.py
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
4. Go!
|
| 25 |
+
|
| 26 |
+
``` sh
|
| 27 |
+
python main.py
|
| 28 |
+
```
|