title: Auto Deployment with Git
body: <p>Ok, I am trying to auto deploy my node.js application with git.</p>
  
  <p>This is what I have on my server:</p>
  
  <pre><code>/home/git/myproj.git - bare repo
  /home/me/public_html - cloned repo of the aforementioned bare repo
  </code></pre>
  
  <p>Now the problem is, I cannot pull from <code>myproj.git/hooks/post-receive</code> because the push to the repo is made as the git user so I have permissions problem. I have also tried some deployment scripts but I have been facing a lot of permissions issues.</p>
  
  <p>I have heard of tools like capistrano, fabric, gitolite, but I guess it's too complex for me atm, and I want something easier (very easy to setup, and keep on replicating in multiple projects).</p>
  
  <p>I hope I made myself clear. I think this problem is related - <a href="https://stackoverflow.com/questions/10009279/auto-deployment-php-script-using-gitolite">Auto deployment PHP script using Gitolite</a> - but I am not using gitolite and his answer doesn't make sense to me (probably because his English is not too well).</p>