Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eb deploy does not update the code

Tags:

I am trying to deploy an application version but eb deploy command fails with:

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.

I tried deploying using the Elastic Beanstalk dashboard, but somehow the instance is not receiving the new version. Can someone help me with this? Thanks.

like image 692
lunr Avatar asked Jan 01 '16 18:01

lunr


People also ask

How does EB deploy work?

Description. Deploys the application source bundle from the initialized project directory to the running application. If git is installed, EB CLI uses the git archive command to create a . zip file from the contents of the most recent git commit command.

How do I update my AWS Elastic Beanstalk environment?

To update your environment's platform versionOpen the Elastic Beanstalk console , and in the Regions list, select your AWS Region. In the navigation pane, choose Environments, and then choose the name of your environment from the list. If you have many environments, use the search bar to filter the environment list.

How do I change my AWS code?

Sign in to the AWS Management Console and open the CodeDeploy console at https://console.aws.amazon.com/codedeploy . Sign in with the same account or IAM user information that you used in Getting started with CodeDeploy. On the navigation pane, choose Applications. In the Applications list, choose HelloWorld_App.


1 Answers

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."

made the commits and worked fine

like image 171
Luke Grayland Avatar answered Sep 18 '22 07:09

Luke Grayland