Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

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!

share|improve this question

closed as off topic by Rarst Nov 3 '11 at 11:26

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Not entirely sure what you mean. As a silly example, you can do a git pull from the server! –  anu May 16 '11 at 11:18
    
@anu: Sure, if you have shell access. You could even automate it, using github's POST service. –  scribu May 16 '11 at 18:00
    
Ehm, kinda not in scope (now that I think about it)?.. –  Rarst Nov 1 '11 at 19:00
    
@Rarst You can convert to CW if you want. –  kaiser Nov 2 '11 at 14:11
    
Unless you want to put this into context of WP specifics (folder structure, etc) I am more inclined to close as off topic. –  Rarst Nov 2 '11 at 14:32

3 Answers 3

I use a script called git-ftp, which simply uses FTP to push changes from a git repo onto a server.

share|improve this answer
1  
Thanks. That looks pretty nice. I'll give it a try. +1 –  kaiser May 16 '11 at 11:29

I just made a tutorial on how to do a site update directly from github using a cloud server ( PHP application), in this demo I am using Engine Yard, but ther are other apps, it's pretty crazy what you can do these days.

http://www.youtube.com/watch?v=8ZEiFi4thDI&feature=feedlik

share|improve this answer

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.

share|improve this answer

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