Skip to content

Commit ea83637

Browse files
committed
Add gunicorn startup command to Azure Web App deployment
1 parent 702e4f0 commit ea83637

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/azure_stock-dashboard-python.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,27 +50,28 @@ jobs:
5050
deploy:
5151
runs-on: ubuntu-latest
5252
needs: build
53-
permissions:
54-
id-token: write #This is required for requesting the JWT
55-
contents: read #This is required for actions/checkout
53+
permissions:
54+
id-token: write #This is required for requesting the JWT
55+
contents: read #This is required for actions/checkout
5656

5757
steps:
5858
- name: Download artifact from build job
5959
uses: actions/download-artifact@v4
6060
with:
6161
name: python-app
62-
63-
- name: Login to Azure
64-
uses: azure/login@v2
65-
with:
66-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F3A2B6BE01664787B76B07AC353D33D3 }}
67-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_298CA90AA01E48B1ADA79A4DC7FA91B6 }}
68-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_EB6A5C6853294E129D054A838DBC3358 }}
62+
63+
- name: Login to Azure
64+
uses: azure/login@v2
65+
with:
66+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F3A2B6BE01664787B76B07AC353D33D3 }}
67+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_298CA90AA01E48B1ADA79A4DC7FA91B6 }}
68+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_EB6A5C6853294E129D054A838DBC3358 }}
6969

7070
- name: 'Deploy to Azure Web App'
7171
uses: azure/webapps-deploy@v3
7272
id: deploy-to-webapp
7373
with:
7474
app-name: 'stock-dashboard-python'
7575
slot-name: 'Production'
76+
startup-command: 'gunicorn --bind=0.0.0.0 --timeout 600 app:server'
7677

0 commit comments

Comments
 (0)