Can you not just SSH into 1 machine and run the migrations from there. Thats what I do, running load balanced EC2 and a separate multi-AZ RDS for the database.
Sep 26, 2017
6
Level 15
Database migrations and deploying to a to load-balanced group.
Not really a Laravel question but this does seem to be the most helpful forum in the internet.
We am moving from a monolithic to a load-balanced architecture.
Previously when deploying code, I used to SSH onto our production box, do a git pull and then run any migrations.
How can I do this when I have more than one server,? I will be using an auto-scaled group in AWS and will use a script to pull the latest code, when the box is started. Where should I be running my migrations? I can't run them when the code is pulled because this will happen on each box.
Mick
Please or to participate in this conversation.