简体   繁体   English

eb deploy 不更新代码

[英]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.

相关问题 代码部署回滚时发送通知 - Send notification when code deploy rollsback AWS EB:未解决的资源依赖性 - AWS EB: Unresolved resource dependencies 如何使用 lerna 将 monorepo 代码部署到 AWS Lambda? - How do I deploy monorepo code to AWS Lambda using lerna? 如何在 AWS Lambda 上部署此代码并生成 csv? - How can I deploy this code on AWS Lambda and generate a csv? 使用 Visual Studio Code 和 Docker 持续开发和部署 Django 应用程序 - Continuously develop and deploy a Django app with Visual Studio Code and Docker Firebase function 部署失败,需要外部代码 - Firebase function deploy fails with requiring external code 使用“firebase deploy”部署到托管 - firebase 如何知道它是部署到托管而不是云功能? - using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions? 使用 EB Extensions 在 Amazon Linux 2 上运行包安装命令 - Run Packages Installation Commands on Amazon Linux 2 using EB Extensions ModuleNotFoundError:将 Django 应用程序部署到 AWS EB 时没有名为“application”的模块 - ModuleNotFoundError: No module named 'application' when deploying Django app to AWS EB Firebase 以非零退出代码(项目路径中的空格)开头的部署错误 - Firebase deploy errors starting with non-zero exit code (space in project path)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM