diff --git a/.gitignore b/.gitignore index 062e1a6..13f7f2a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .aider* .env -build/ \ No newline at end of file +build/ +dist/ diff --git a/README.md b/README.md index d449f10..d8690e4 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ models: proxy: "http://127.0.0.1:8999" ``` -## Deployment +## Installation 1. Create a configuration file, see [config.example.yaml](config.example.yaml) 1. Download a [release](https://github.com/mostlygeek/llama-swap/releases) appropriate for your OS and architecture. @@ -47,7 +47,7 @@ models: ## Systemd Unit Files -Use this unit file to start llama-swap on boot +Use this unit file to start llama-swap on boot. This is only tested on Ubuntu. `/etc/systemd/system/llama-swap.service` ``` @@ -68,4 +68,10 @@ StartLimitInterval=30 [Install] WantedBy=multi-user.target -``` \ No newline at end of file +``` + +## Building from Source + +1. Install golang for your system +1. run `make clean all` +1. binaries will be built into `build/` directory diff --git a/go.mod b/go.mod index 08fcd29..7b25993 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/mostlygeek/llama-swap go 1.23.0 -require gopkg.in/yaml.v3 v3.0.1 // indirect \ No newline at end of file +require gopkg.in/yaml.v3 v3.0.1 diff --git a/go.sum b/go.sum index 4bc0337..a62c313 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,4 @@ +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=