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.

We have 3 Ubuntu boxes - development server, git server and a webserver and work from a windows xp machine.

Is it possible to work on the development server, stage and manage files to push/pull from the git server, then deploy to the webserver once commited?

Any advice, greatly appreciated.

share|improve this question

closed as not a real question by EightBitTony, Alex, womble, Chris S Jul 12 '12 at 13:08

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers 2

I think better solution then cron job every minute, would be use one of Git Hooks, for other automated stuff i would use inotify tools As im going to do something similar in near future, was doing some research and found this 2 links as possible solutions. Hope this helps.

share|improve this answer

You could setup a cron job to run every minute to checkout the latest files in the repo.

That is how I am doing it with my subversion server - and it works great.

You just create an executeable bash file with the command to pull from the git server, and then add a line to the crontab with crontab -e:

* * * * * /path_to_script

This will make the script run every minute.

share|improve this answer
    
Is there a client you can use to browse/manage these repositories remotely? I've tried Git Extensions and TortoiseGIT but I can't seem to get them to connect –  Jenski Jul 12 '12 at 8:52
    
I assume you are talking about your ubuntu box? In such case, you should just install git via apt-get and it should do it. I haven't used git that much - so my experience is limited. –  Frederik Nielsen Jul 12 '12 at 8:53
    
Sorry - accessing/managing repositories from a Windows XP machine –  Jenski Jul 12 '12 at 8:59
    
Github just launched their own version if Git for Windows - I dont know if it can handle your own git servers too, but give it a shot. Otherwise, this thread on StackOverflow seems to have quite a lot of answers –  Frederik Nielsen Jul 12 '12 at 9:08
    
Git has a complete hook infrastructure, there's no need to be bodging things up with cronjobs. –  womble Jul 12 '12 at 9:49

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