Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

llomgui's avatar

Question about deployment

Hey !

Currently I have a Laravel application on OpenShift (3 replicas with a loadbalancer in front). It's on autodeploy once I get an image change. I set the deployment on "Rolling".

Question is about the database: Once the first replica is updated, the database is also updated with a "php artisan migrate". So the 2 others replicas are outdated. I don't know how to handle this case, do you have a solution?

Thanks in advance.

0 likes
0 replies

Please or to participate in this conversation.