Skip to content

Commit

Permalink
stdio inheritance, new header in deploy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
emdoyle committed Jul 23, 2024
1 parent 67f9509 commit e604c2b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion api/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
2 changes: 1 addition & 1 deletion gauge/cli/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit e604c2b

Please sign in to comment.