[英]eb deploy does not update the code
I am trying to deploy an application version but eb deploy
command fails with:我正在尝试部署应用程序版本,但
eb deploy
命令失败并显示:
ERROR: Update environment operation is complete, but with errors.
错误:更新环境操作已完成,但有错误。 For more information, see troubleshooting documentation.
有关详细信息,请参阅故障排除文档。
I checked the logs, made some changes to the code, committed and deployed again and guess what, it failed again.我检查了日志,对代码做了一些更改,再次提交和部署,猜猜是什么,它又失败了。 The logs indicate the same error, disregarding my changes.
日志指示相同的错误,忽略我的更改。 The error occurs in a file in this directory
/var/app/ondeck/app/
, when I go check, I can see the previous version is there.错误发生在这个目录
/var/app/ondeck/app/
中的文件中,当我去检查时,我可以看到以前的版本在那里。
I tried deploying using the Elastic Beanstalk dashboard, but somehow the instance is not receiving the new version.我尝试使用 Elastic Beanstalk 仪表板进行部署,但不知何故实例未收到新版本。 Can someone help me with this?
有人可以帮我弄这个吗? Thanks.
谢谢。
Just had the same problem and noticed in the documentation刚刚遇到同样的问题并在文档中注意到
"Note If you have initialized a git repository in your project folder, the EB CLI will always deploy the latest commit, even if you have pending changes. Commit your changes prior to running eb deploy to deploy them to your environment." “请注意,如果您在项目文件夹中初始化了一个 git 存储库,EB CLI 将始终部署最新的提交,即使您有未决的更改也是如此。在运行 eb deploy 之前提交您的更改以将它们部署到您的环境中。”
made the commits and worked fine做出承诺并且工作正常
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.