updated README.md
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,3 +2,6 @@
|
||||
__pycache__
|
||||
*.pyc
|
||||
src/bugis/_version.py
|
||||
*.egg-info
|
||||
/build
|
||||
/dist
|
||||
|
29
README.md
29
README.md
@@ -1,12 +1,23 @@
|
||||
# Run
|
||||
|
||||
## How to
|
||||
|
||||
### Build the docker image
|
||||
```bash
|
||||
uwsgi --need-plugin /usr/lib/uwsgi/python_plugin.so \
|
||||
--need-plugin /usr/lib/uwsgi/gevent_plugin.so \
|
||||
-H venv \
|
||||
--http :1180 \
|
||||
-w md2html.uwsgi_handler \
|
||||
--http-keepalive \
|
||||
--http-auto-chunked \
|
||||
--gevent 10
|
||||
docker build -t gitea.woggioni.net/woggioni/bugis:latest .
|
||||
```
|
||||
### Build the pip package
|
||||
```bash
|
||||
pyproject-build
|
||||
```
|
||||
|
||||
### Run in docker
|
||||
```bash
|
||||
docker run --rm -v /your/document/directory:/srv/http --user $(id -u):$(id -g) -p 127.0.0.1:8000:8000 gitea.woggioni.net/woggioni/bugis:latest
|
||||
```
|
||||
|
||||
### Run in docker with `nginx` and `plantUML` server
|
||||
|
||||
```bash
|
||||
docker compose up --build
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user