mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 07:38:04 -05:00
feat: Introduce DatabaseManager startup process file (poetry run db)
This commit is contained in:
13
autogpt_platform/backend/backend/db.py
Normal file
13
autogpt_platform/backend/backend/db.py
Normal file
@@ -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()
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user