Answers.Body: <p>Don't update Craft or any plugins on production.</p>
  
  <p>Do the updates on a local/dev version of the site, commit the resulting changes, then deploy those to all of your EC2 instances with a CI/CD service like <a href="https://buddy.works" rel="nofollow noreferrer">https://buddy.works</a> or whatever your favorite service is.</p>
  
  <p>Some related blog posts worth reading:</p>
  
  <p><a href="https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms" rel="nofollow noreferrer">https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms</a></p>
  
  <p><a href="https://nystudio107.com/blog/local-development-with-vagrant-homestead" rel="nofollow noreferrer">https://nystudio107.com/blog/local-development-with-vagrant-homestead</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-24T20:16:03.927Z
Answers.Text: Thank you for the response! 
  
  So just to clarify, if I update craft locally with a clone of the production database, do I also have to re-import the database I have on my local machine to production? Or is craft smart enough to see the file changes and update the database as needed?
Answers.UserDisplayName: Hou-Tai Wong
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-27T05:22:23.983Z
Answers.Text: It won't automatically happen. It depends on the changes that you might have made locally and if things on production have changed as well. Craft's project config or content migrations are potential solutions.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-24T01:51:44.690Z
Answers.LastActivityDate: 2020-01-24T01:51:44.690Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a pretty large Craft site that needs to be load balanced with multiple ec2 instances and one RDS mysql instance. Everything is working great, except for I noticed that if I get to the admin panel and run updates on craft/plugins. The site files only change on the ec2 instance i'm on.</p>
  
  <p>Is there a way to update all my ec2 instances at once on update?</p>
  
  <p>Thanks! Any help is appreciated.</p>
  
Tags: <database><updates><manual-updates><aws><load-balancer>
Title: AWS EC2, Load Balancer and Updating Craft
ThreadText: # AWS EC2, Load Balancer and Updating Craft
  
  (Asked by: username_0 on 2020-01-23)
  
  I have a pretty large Craft site that needs to be load balanced with multiple ec2 instances and one RDS mysql instance. Everything is working great, except for I noticed that if I get to the admin panel and run updates on craft/plugins. The site files only change on the ec2 instance i'm on.
  
  Is there a way to update all my ec2 instances at once on update?
  
  Thanks! Any help is appreciated.
  
  **Tags:** database, updates, manual-updates, aws, load-balancer
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-01-24. Score: 0 | Accepted answer
  
  Don't update Craft or any plugins on production.
  
  Do the updates on a local/dev version of the site, commit the resulting changes, then deploy those to all of your EC2 instances with a CI/CD service like <https://buddy.works> or whatever your favorite service is.
  
  Some related blog posts worth reading:
  
  <https://nystudio107.com/blog/database-asset-syncing-between-environments-in-craft-cms>
  
  <https://nystudio107.com/blog/local-development-with-vagrant-homestead>
  
  > **Comments:**
  > **username_0**: Thank you for the response!   So just to clarify, if I update craft locally with a clone of the production database, do I also have to re-import the database I have on my local machine to production? Or is craft smart enough to see the file changes and update the database as needed?  
  > **username_1**: It won't automatically happen. It depends on the changes that you might have made locally and if things on production have changed as well. Craft's project config or content migrations are potential solutions.  
  
  ---
  
  