Elastic Beanstalk has error with .NET Core files zipped on mac

0

I am having issues with Elastic Beanstalk and my .NET Core web service that I'm attempting to build and deploy from my mac.

I downloaded the dotnet-core-tutorial-bundle.zip from this page: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-core-tutorial.html and confirmed that I can upload and deploy this zip.

When I unzip that folder using Finder and rezip using Finder or the zip command line tool, the deployment fails with message "Error during deployment: Application test-dotnet-core is missing web.config file."

I downloaded the same zip on a Windows computer, unzipped using Explorer, and rezipped using Explorer and the deployment succeeds.

Does anyone know a way to zip on a mac that will make Elastic Beanstalk happy? I did find several tutorials and forum posts that indicated that the commands I am running to zip have worked in the past.

My zip script:

zip -r -X site.zip site/
zip my-service.zip site.zip aws-windows-deployment-manifest.json

Edited by: christis on Apr 9, 2019 4:16 AM

질문됨 5년 전601회 조회
1개 답변
0

Mac's zip function was adding an extra site folder to my archive. This isn't the most beautiful script but it works.

dotnet publish -o site -c Release
cd site
zip -r -X ../site.zip .
cd ..
zip my-service.zip site.zip aws-windows-deployment-manifest.json

Edited by: christis on Apr 9, 2019 5:02 PM

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠