Ollama / ollama.sh
PyxiLabs's picture
Update ollama.sh
323f9a7 verified
raw
history blame
412 Bytes
#!/bin/bash
# Start Ollama server in background
echo "πŸš€ Starting Ollama server..."
ollama serve &
# Wait for Ollama to be ready on port 11434
echo "⏳ Waiting for Ollama to start..."
while ! nc -z localhost 11434; do
sleep 1
done
# Pull default model
echo "πŸ“₯ Pulling model..."
ollama pull llama2
# Start Cloudflared tunnel
echo "πŸ”— Exposing Ollama through Cloudflare tunnel..."
exec node ollama.js