Docker deployment Realised

This commit is contained in:
Josako
2024-06-26 12:02:14 +02:00
parent 348bdf2c15
commit 7a1b51dd0c
2494 changed files with 7329 additions and 172135 deletions

View File

@@ -1,15 +1,13 @@
#!/usr/bin/env bash
#!/bin/bash
cd "/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/" || exit 1
source "/Volumes/OWC4M2_1/Dropbox/Josako's Dev/Josako/EveAI/Development/eveAI/.venv/bin/activate"
cd "/app/" || exit 1
export PYTHONPATH="$PYTHONPATH:/app/"
# Start a worker for the 'embeddings' queue with higher concurrency
celery -A eveai_workers.celery worker --loglevel=info -Q embeddings --autoscale=1,4 --hostname=embeddings_worker@%h &
celery -A eveai_workers.celery worker --loglevel=info -Q embeddings --autoscale=2,8 --hostname=embeddings_worker@%h &
# Start a worker for the 'llm_interactions' queue with auto-scaling - not necessary, in eveai_chat_workers
# celery -A eveai_workers.celery worker --loglevel=info - Q llm_interactions --autoscale=2,8 --hostname=interactions_worker@%h &
# Wait for all background processes to finish
wait
deactivate