I've got Node.js and Git setup on a server. What I want is to be able to commit to the Git server from my computer, and the files on the server change accordingly.
However, I can't get my head around how to get Git to work. If I use a non-bare repo, I can get files to sync between anyone pulling/committing to the server, but the files on the Git server itself don't update - so I can't run Node as the server files aren't there.
If I use a bare repo, the files on the Git server are up to date, but AFAIK you can't commit to the current branch if it's checked out on the server, which I need to do to access the files server side, so that isn't working either.
Is there anyway to do this? :S