How to: Update live sites theme from version control repo via plugin or library?

Maybe someone knows how i could update my live sites theme from a version control*) project repository.

Point is that it’s really time consuming if you got your theme hosted with version control (as an open source project), have a live site that uses the theme and maybe also make it available else where. Normally that means half an hour until you got everything running after you wrote an update/commited something.

Read More

I’ve seen it once that a server got a “live” update via a git project, but so far couldn’t find out how this would be done.

Nice would be if there’s a plugin out there that does this already. Libraries or similar are also ok.

*) The Q is about Github, Bitbucket, etc. and it also doesn’t matter if the solution is git or svn based.

Thank you!

Related posts

Leave a Reply

3 comments

  1. We are using Mercurial via Bitbucket, but same logic applies:

    1. Clone repository to server.
    2. Protect it from being web-accessed.
    3. Create PHP script that will issue pull and update command to the repo.
    4. Set up Bitbucket to ping PHP script on commit.

    This is not quite “proper” deployment scheme, but it hugely streamlines workflow on development servers that need to fetch multiple different components from multiple repos.