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: Introduce DatabaseManager startup process file (poetry run db)
Zamil Majdyc3fe31eca9de
diff --git a/autogpt_platform/backend/backend/db.py b/autogpt_platform/backend/backend/db.pynew file mode 100644index 0000000000..5c59a98a00--- /dev/null+++ b/autogpt_platform/backend/backend/db.py@@ -0,0 +1,13 @@+from backend.app import run_processes+from backend.executor import DatabaseManager+++def main():+ """+ Run all the processes required for the AutoGPT-server REST API.+ """+ run_processes(DatabaseManager())+++if __name__ == "__main__":+ main()diff --git a/autogpt_platform/backend/pyproject.toml b/autogpt_platform/backend/pyproject.tomlindex 294d69b05e..01664142c0 100644--- a/autogpt_platform/backend/pyproject.toml+++ b/autogpt_platform/backend/pyproject.toml@@ -97,6 +97,7 @@ build-backend = "poetry.core.masonry.api"[tool.poetry.scripts]app = "backend.app:main"rest = "backend.rest:main"+db = "backend.db:main"ws = "backend.ws:main"scheduler = "backend.scheduler:main"executor = "backend.exec:main"