Golang和AWS:部署到AWS Elastic Beanstalk不起作用

huangapple go评论86阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2015年8月14日 05:05:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/31998410.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定