File size: 412 Bytes
16aa2f8 700c67a 16aa2f8 323f9a7 700c67a 323f9a7 16aa2f8 323f9a7 16aa2f8 323f9a7 f5f67a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
#!/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 |