Adding the knowledge files to git
This commit is contained in:
@@ -21,36 +21,13 @@ if [[ ! -f "${REPO_DIR}/.env" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# ── Ollama ────────────────────────────────────────────────────────────────────
|
||||
if [[ "$OS" == "Linux" ]]; then
|
||||
if systemctl is-active --quiet ollama 2>/dev/null; then
|
||||
info "Ollama already running"
|
||||
else
|
||||
info "Starting Ollama..."
|
||||
sudo systemctl start ollama
|
||||
fi
|
||||
else
|
||||
if curl -sf http://localhost:11434/api/tags >/dev/null 2>&1; then
|
||||
info "Ollama already running"
|
||||
else
|
||||
info "Starting Ollama..."
|
||||
ollama serve >/tmp/ollama.log 2>&1 &
|
||||
sleep 2
|
||||
curl -sf http://localhost:11434/api/tags >/dev/null 2>&1 \
|
||||
&& info "Ollama started" \
|
||||
|| warn "Ollama didn't respond — check: ollama serve"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ── Docker containers ─────────────────────────────────────────────────────────
|
||||
info "Starting agent0..."
|
||||
docker compose up -d agent0
|
||||
|
||||
info "Starting glitch-tunnel..."
|
||||
info "Starting agents and glitch-tunnel..."
|
||||
docker compose up -d glitch-tunnel
|
||||
|
||||
echo ""
|
||||
docker compose ps
|
||||
|
||||
echo ""
|
||||
info "Agent0 is up. Open https://agent0.glitch.university"
|
||||
info "Agents are up. Open https://agent0.glitch.university"
|
||||
|
||||
Reference in New Issue
Block a user