Answer the question
In order to leave comments, you need to log in
How to set up deployer and database migrations?
Good day, gentlemen.
There is a site hosted on three servers. Each server contains the latest version of the program code (PHP, kohana) and the entire database (MySQL), that is, each server can be called a full-fledged independent instance, which can work well alone, without other servers.
There are inconveniences when rolling out changes to the program code and the structure of the database for release.
Now it happens like this: we go to the server, change the base, pull the changes from git, go to the next server. It is not comfortable.
I would like the new version (both the code and the database structure) to be rolled out with one command to all servers. In the same way, I want to do rollback with one command.
What do you advise? What software to use? I read about capistrano, but I still don’t understand if it can deploy changes to several servers at once, and something muddy there with migrations.
Comment from habr: habrahabr.ru/post/110021/#comment_3497938
And the question with migrations remains open - will it be a separate program or will you have to reinvent the wheel and write your own migration module in kohana (or modify the existing ones for yourself).
Answer the question
In order to leave comments, you need to log in
Write your own git-binding link-your servers through, for example, rsync (if you have your own servers, you can install it). And database migrations - have you tried ruckusing migrations?
I am using Mina .
Yes, it's ruby. But my project symphony deployment takes 15 seconds.
I like Capistrano for deployment. Pretty easy to customize and add to. There is a lot of information about how to solve typical and not very tasks with it.
For database migrations, look for solutions specific to Kohana and attach them to the chosen deployment system. Here's an example .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question