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

CC BY-SA 4.0
2020-01-24T20:16:03.927Z
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?
Hou-Tai Wong
CC BY-SA 4.0
2020-01-27T05:22:23.983Z
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.
Brad Bell
CC BY-SA 4.0
2020-01-24T01:51:44.690Z
2020-01-24T01:51:44.690Z
Brad Bell
<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>

<database><updates><manual-updates><aws><load-balancer>
AWS EC2, Load Balancer and Updating Craft
# 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.  

---

