pocketarc / git-deploy-php

git-deploy-php is a simple php-based tool that deploys your Git repositories to FTP/SFTP servers, and keeps them updated automatically.
http://brunodebarros.github.io/git-deploy-php
291 stars 45 forks source link

Multiple branches and multiple servers #29

Closed gavrochelegnou closed 10 years ago

gavrochelegnou commented 10 years ago

Hello, This project seems exactly what i need, but i wonder how to handle deployment of multiple branches to multiple servers.

If i have staging.ini and live.ini files and a "staging" branch and "live" branch is there a way to make sure only branch "live" will use live.ini ?

pocketarc commented 10 years ago

Not at the moment, but it can easily be added as an option to the deploy.ini file (you'd have both the staging and live configs there, and could set branch=live or branch=staging depending on what you wanted).

When deploying, the system would get the latest commit from the right branch, as specified in the ini file.

How does this sound to you? I can get this sorted over the weekend, so if it sounds good, I'd be happy to add it.

pocketarc commented 10 years ago

I've added this to git-deploy. Instructions are included in the README.