fix: trying to fix auto-pulls 5 !

This commit is contained in:
2026-02-27 05:33:30 +02:00
parent d44070f892
commit 9cd826bed2

View File

@@ -43,7 +43,7 @@ async def deploy(request: Request):
logger.info("Auto-deploy triggered via Gitea webhook")
project_path = settings.deploy_project_path
cmd = f"cd {project_path} && git pull origin main && docker compose up -d --build"
cmd = f"git config --global --add safe.directory {project_path} && cd {project_path} && git pull origin main && docker compose up -d --build"
try:
proc = await asyncio.create_subprocess_shell(
cmd,