poetry development
This commit is contained in:
parent
0004abf32e
commit
4018b3c533
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
# Development
|
# Development
|
||||||
|
|
||||||
|
ollama is built and run using [Poetry](https://python-poetry.org/).
|
||||||
|
|
||||||
## Running
|
## Running
|
||||||
|
|
||||||
**Start backend service:**
|
**Start backend service:**
|
||||||
|
@ -7,13 +9,13 @@
|
||||||
Install dependencies:
|
Install dependencies:
|
||||||
|
|
||||||
```
|
```
|
||||||
pip install -r requirements.txt
|
poetry install --extras server
|
||||||
```
|
```
|
||||||
|
|
||||||
Run a server:
|
Run a server:
|
||||||
|
|
||||||
```
|
```
|
||||||
python3 ollama.py serve
|
poetry run ollama serve
|
||||||
```
|
```
|
||||||
|
|
||||||
**Start frontend service:**
|
**Start frontend service:**
|
||||||
|
@ -43,13 +45,13 @@ bash Miniforge3-MacOSX-arm64.sh
|
||||||
Get the dependencies:
|
Get the dependencies:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
pip install -r requirements.txt
|
poetry install --extras server
|
||||||
```
|
```
|
||||||
|
|
||||||
Then build a binary for your current platform:
|
Then build a binary for your current platform:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
python3 build.py
|
poetry build
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building the app
|
### Building the app
|
||||||
|
|
Loading…
Reference in a new issue