On 29 Nov 17:46, Srdjan Todorovic wrote:
On 29 November 2010 17:31, Chris G cl@isbd.net wrote:
However I don't see how the files get to 'go live' on the remote web server, my 'git push' has simply put them back into the repository on that system. Presumably someone/somewhere has to extract the files from the git repository on the remote into the working directories from which the web server displays them. Is there a specific git command for doing this or would one use the standard 'git clone' to do it, or what?
I'd have thought an initial 'git clone' followed by periodic or triggered 'git pull's. There may be tools to do this more automagically - see if Google has any hits on this subject.
But I think there's also a git extract (or whatever equivalent of the svn command is) so you don't also expose the git metadata. I think the manual pages and git books will have more info.
It helps if you get the correct svn command... svn export.
But it really depends on how he *wants* to do the deployments, personally I'd just use git pulls from the remote after doing a clone, and stopping the webserver from serving the .git directory.
(The 'equiv' to and svn export is git archive, by the way)