Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Basically i owns 3 systems where one act as a Balancer Node , and the data for the websites resides over the other two.

The Problem is :

i want to update all the 2 nodes with the same data (means .php files , which my website is designed) when i update either one of them . note: .php source files have to be updated

what can i do?

Doubt : i have also one doubt to ask can i basically call the group (balancer system and the nodes ) as a cloud ?

share|improve this question
    
Do you want to simultaneously update your both node? –  Abhishek Anand Amralkar Mar 1 '13 at 5:23
    
yes thats it , bu i may update only a common source –  7-isnotbad Mar 1 '13 at 5:40
add comment

1 Answer

You can try using a git repo... basically what we do is we create a GIT repo and push our code to it, and on the webserver, we clone that repository on deployment path e.g. /var/www/html/xyz and evry time a developer commits to the repo, there is a custom script that is triggered to pull new files from git to target webservers...

share|improve this answer
    
You can also try lsyncd –  mohit Mar 7 '13 at 9:49
    
or u can try incrond + rsync –  mohit Mar 7 '13 at 11:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.