From e604c2b274d3b4ffecd3157cf8d73811c2438b64 Mon Sep 17 00:00:00 2001 From: Evan Doyle Date: Mon, 22 Jul 2024 21:49:47 -0700 Subject: [PATCH] stdio inheritance, new header in deploy cli --- api/deploy.sh | 11 ++++++++++- gauge/cli/deploy.py | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/api/deploy.sh b/api/deploy.sh index 676f41d..b935c7a 100755 --- a/api/deploy.sh +++ b/api/deploy.sh @@ -32,5 +32,14 @@ if pgrep gunicorn; then pkill gunicorn fi -nohup gunicorn -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 src.app:app > gunicorn.log 2>&1 & +nohup gunicorn \ + -k uvicorn.workers.UvicornWorker \ + -b 0.0.0.0:8000 \ + --log-file gunicorn.log \ + --log-level DEBUG \ + --capture-output \ + --access-logfile gunicorn.log \ + --error-logfile gunicorn.log \ + --enable-stdio-inheritance \ + src.app:app & echo "Deployment completed." diff --git a/gauge/cli/deploy.py b/gauge/cli/deploy.py index 88dd5f0..527a720 100644 --- a/gauge/cli/deploy.py +++ b/gauge/cli/deploy.py @@ -75,7 +75,7 @@ def upload(self, zip_path: Path, deployments: DeployConfigType) -> None: files = {"file": zip_file, "json_data": (None, json.dumps(deployments))} resp = requests.post( API_URL + "/v0.1/deploy/", - headers={"GAUGE_CLIENT_ID": gauge_client_id}, + headers={"X-Client-Secret": gauge_client_id}, files=files, ) if resp.status_code != 200: