Skip to content

Commit 7a70575

Browse files
committed
Fixed timeout
1 parent a499ec9 commit 7a70575

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

ansible/deploy-frontend.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
BACKEND_URL: "{{ lookup('env', 'LB_API_URL') }}"
1212

1313
tasks:
14-
- name: Enable Oryx build
14+
- name: Disable Oryx build to prevent deployment timeout
1515
shell: |
1616
az webapp config appsettings set \
1717
--resource-group {{ RESOURCE_GROUP_NAME }} \
1818
--name {{ APP_SERVICE_NAME }} \
19-
--settings SCM_DO_BUILD_DURING_DEPLOYMENT=true
19+
--settings SCM_DO_BUILD_DURING_DEPLOYMENT=false
2020
2121
- name: Set BACKEND_URL in .env file
2222
copy:
@@ -48,15 +48,13 @@
4848
args:
4949
chdir: "{{ FRONTEND_PATH }}"
5050

51-
- name: Deploy zip to Azure Web App
51+
- name: Deploy zip to Azure Web App using config-zip
5252
shell: |
53-
az webapp deploy \
53+
az webapp deployment source config-zip \
5454
--resource-group {{ RESOURCE_GROUP_NAME }} \
5555
--name {{ APP_SERVICE_NAME }} \
56-
--src-path {{ ZIP_PATH }} \
57-
--type zip
56+
--src {{ ZIP_PATH }}
5857
59-
- name: Show deployment result
58+
- name: Show success message
6059
debug:
61-
msg: "✅ Successfully deployed to https://{{ app_service_name }}.azurewebsites.net"
62-
when: deployment_check.status == 200
60+
msg: "✅ Successfully deployed to https://{{ APP_SERVICE_NAME }}.azurewebsites.net"

0 commit comments

Comments
 (0)