fix: trying to fix auto-pulls 5 !
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user