Hello,
We handle upgrades by first doing a local one, committing all the changes, and then executing all the upgrade migrations that are provided with an upgrade. We have also used CS-Carts internal github repository but that does mean you have to ask permission first.
Yes, you could use a docker volume for files, but its not recommended to use S3 then. Instead, you should probably use something like EFS, as its was made to work that way. S3 is meant to be used through an API.
You could make a staging server by using something like Elastic Beanstalk.
Kind regards,
Great, thanks.
That makes sense. So you run the command line migrations on production prior to pulling in code changes? I didn't realise you could run the database migrations separate to the code updates.
The reason I wanted to use S3 was that we have custom addons, one of which is for our product brochures. All brochures have 1 page, but in special circumstances, some products have a second page with more detailed product specs on them. If a file is found in a particular folder that matches the product SKU, then this second page is appended to the PDF. The reason I wanted to use volumes was so that management could FTP directly into the folder and drop the second page PDF files as they were generated... But I gather the same would work for EFS....
How about deployment, do you use ECS for your containers?
I am trying to think of the simplest deploy method to aws. Traffic to our site is about 20K users per month with session times of about 4 minutes which is pretty modest. I keep thinking of dockerizing and using ECS, but maybe that is overkill.
Currently i run mysql on the same instance as the website. Although I think it makes sense to possibly push the database to its own VPC..
I would be interested in your thoughts.... thanks again