-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
When deploying to Azure with Python 11 the web app would restart due to missing uvicorn.
2025-10-07T01:53:24.4305166Z /opt/startup/startup.sh: 23: uvicorn: not found
SSH'ed in and uvicorn was there in the antenv/bin directory.
Had to change the startup command to the following:
python -m uvicorn app:app --host 0.0.0.0 --port 8000
The following Environment Variables were also added:\
az webapp config appsettings set -g -n --settings SCM_DO_BUILD_DURING_DEPLOYMENT=1 ENABLE_ORYX_BUILD=1 WEBSITES_PORT=8000 WEBSITE_RUN_FROM_PACKAGE=0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels