AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
feat(platform): Use a single DB manager across the system (#9662)
Zamil Majdy42232f55e8cf
diff --git a/autogpt_platform/backend/backend/exec.py b/autogpt_platform/backend/backend/exec.pyindex 6e902c64df..336f994857 100644--- a/autogpt_platform/backend/backend/exec.py+++ b/autogpt_platform/backend/backend/exec.py@@ -6,10 +6,7 @@ def main():"""Run all the processes required for the AutoGPT-server REST API."""- run_processes(- DatabaseManager(),- ExecutionManager(),- )+ run_processes(ExecutionManager())if __name__ == "__main__":diff --git a/autogpt_platform/docker-compose.platform.yml b/autogpt_platform/docker-compose.platform.ymlindex 3ffb148c35..1197b6def0 100644--- a/autogpt_platform/docker-compose.platform.yml+++ b/autogpt_platform/docker-compose.platform.yml@@ -121,6 +121,7 @@ services:migrate:condition: service_completed_successfullyenvironment:+ - DATABASEMANAGER_HOST=rest_server- SUPABASE_URL=http://kong:8000- SUPABASE_JWT_SECRET=your-super-secret-jwt-token-with-at-least-32-characters-long- SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyAgCiAgICAicm9sZSI6ICJzZXJ2aWNlX3JvbGUiLAogICAgImlzcyI6ICJzdXBhYmFzZS1kZW1vIiwKICAgICJpYXQiOiAxNjQxNzY5MjAwLAogICAgImV4cCI6IDE3OTk1MzU2MDAKfQ.DaYlNEoUrrEn2Ig7tqibS-PHK5vgusbcbo7X36XVt4Q@@ -163,6 +164,7 @@ services:migrate:condition: service_completed_successfullyenvironment:+ - DATABASEMANAGER_HOST=rest_server- SUPABASE_JWT_SECRET=your-super-secret-jwt-token-with-at-least-32-characters-long- DATABASE_URL=postgresql://postgres:your-super-secret-and-long-postgres-password@db:5432/postgres?connect_timeout=60&schema=platform- REDIS_HOST=redis