英文:
Golang & AWS: Deployment to AWS Elastic Beanstalk not working
问题
我设置了一个golang的Web服务器,并使用了他们提供的示例Web应用程序。部署后,我访问了Web服务器的URL,它可以正常工作。
我下载了示例应用程序的压缩包,解压缩后重新压缩,并上传了应用程序,但部署失败了。
然而,如果我重新上传原始的示例压缩包,它就可以正常工作。根据这个情况,似乎我在压缩源代码时出了问题。有什么想法吗?
英文:
I setup a golang web server and used the sample web application that they provided. After the deployment I went to the URL of the webserver and it worked.
I downloaded the sample application zip, unzipped it, rezipped it and upload the app and the deployment did not work.
However if I reuploaded the original sample zip it WOULD work. Based on this it appears something is wrong with how I'm zipping the source code. Any ideas?
答案1
得分: 1
傻我了,我压缩的是文件夹而不是文件夹里面的内容。在压缩文件夹的内容之后,它对我起作用了。
英文:
Silly me, I was zipping the folder instead of the contents of the folder. After zipping the contents of the folder, it worked for me.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论