简体   繁体   中英

How to speed up slow Azure App Service Zip Deployment?

I am deploying a Nuxt application with Appveyor over Azure App Service Zip Deploy , but I am having trouble with the full deployment process being incredibly slow (Around 30+ minutes).

It seems that the whole build process is going as it should, but zipping the files takes around a minute or two (106 MB), and the file is successfully being pushed to the app service within a reasonable amount of time. However the incredible waiting time is at the Site Under Construction white page stage, taking down the whole website with it.

  1. Does anyone have any tips to speed up this process besides upgrading the App Service plan?
  2. Is there any way to avoid the blank Site Under Construction page? For example, is there a way to unzip to another folder and move the files after everything is done so I would get minimal downtime on the website?

You can add WEBSITE_RUN_FROM_PACKAGE=1 app settings This option will deploy your app service to read only file system (read-only wwwroot folder, other folders are available for write operations) Please take into account if you set this variable on ci/cd tool side probably the first time it won't apply because app settings are passed after zip deployment

And regarding the second questions. I guess it could be fixed by another app settings SCM_CREATE_APP_OFFLINE=0 (it should update your app without bringing it offline)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM