azure-web-app-service - VSCode App Service Deploy Failed 2gb zip file limit
问题描述
Deploying Flask app using VSCode App Service fails. The zip file is 2.2 gb - too large.
What procedure can I use to deploy large projects? Can I upload the project in 2 or more steps ?
https://docs.microsoft.com/en-us/azure/app-service/deploy-zip
Created new web app "mysite": https://mysite.azurewebsites.net mysite: Starting deployment... mysite: Creating zip package... mysite: Zip package size: 2.22 GB mysite: Fetching changes. mysite: Cleaning up temp folders from previous zip deployments and extracting pushed zip file /tmp/zipdeploy/b02a0e95-4e86-4bcc-a71f-9997355a55fb.zip (54.56 MB) to /tmp/zipdeploy/extracted mysite: Offset to Central Directory cannot be held in an Int64. mysite: Deployment failed.
解决方案
正如我在您的帖子中提到的“应用服务中无法增加 2048MB (2GB) 的 zip 文件限制。这是设计使然,不是 Kudu 的限制,而是 IIS 的限制,因为请求通过前端。当使用集成管道,我们通过不支持超过 2 GB 内容长度的 webengine 代码 (webengine4!MgdGetRequestBasics)。”
推荐阅读
- javascript - Azure http-trigger 函数使用 multipart/form-data 查询 HTTP POST 请求
- node.js - 在 NodeJS netlify-lambda 上运行的 Lambda 函数出错 — “TypeError: Expected signal to be an instanceof AbortSignal”
- java - 我如何在 Spring Boot 中使用 Query 和 Pageable
- mysql - 连接到 MySql 导致“连接被拒绝,没有更多信息”
- c# - 如果不活动,gRPC 连接会在 60 秒后断开
- c# - JsonSerializer 似乎忽略了时区偏移
- python - 无法将我的 Kivy 应用程序打包成 EXE。Error = (2, 'LoadLibraryExW', '系统找不到指定的文件。')
- javascript - 如何创建错误的子类型来抛出它?
- linux - 在 dna 字符串中查找唯一序列
- c - 使用线程生成随机数