diff --git a/home/.justfiles/ollama.just b/home/.justfiles/ollama.just index c3a860e..fd2a720 100644 --- a/home/.justfiles/ollama.just +++ b/home/.justfiles/ollama.just @@ -5,6 +5,12 @@ export OLLAMA_HOST := "0.0.0.0:11434" export OLLAMA_ORIGINS := "http://*" +@ollama-copy-plist: + cp ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist + +@ollama-diff-plist: + diff ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist + @ollama-download: # https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values # https://github.com/jmorganca/ollama/blob/main/examples/python/client.py diff --git a/home/.plists/homebrew.mxcl.ollama.plist b/home/.plists/homebrew.mxcl.ollama.plist new file mode 100644 index 0000000..859b98a --- /dev/null +++ b/home/.plists/homebrew.mxcl.ollama.plist @@ -0,0 +1,36 @@ + + + + + KeepAlive + + Label + homebrew.mxcl.ollama + LimitLoadToSessionType + + Aqua + Background + LoginWindow + StandardIO + System + + ProgramArguments + + /opt/homebrew/opt/ollama/bin/ollama + serve + + RunAtLoad + + StandardErrorPath + /opt/homebrew/var/log/ollama.log + StandardOutPath + /opt/homebrew/var/log/ollama.log + WorkingDirectory + /opt/homebrew/var + EnvironmentVariables + + OLLAMA_HOST0.0.0.0:11434 + OLLAMA_ORIGINShttp://* + + + diff --git a/home/justfile b/home/justfile index 13cc95e..623ad40 100644 --- a/home/justfile +++ b/home/justfile @@ -273,10 +273,6 @@ virtualenv-scan: @kill-tabs: bunx kill-tabs -@plist: - # diff ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist - cp ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist - @topalias: topalias