Git push from post-receive

Posted by meka on Stack Overflow See other posts from Stack Overflow or by meka
Published on 2010-05-28T12:54:25Z Indexed on 2010/05/28 13:02 UTC
Read the original article Hit count: 172

Filed under:
|

I have two servers, let's call them first and second. First one is where the real development is done, and second one should be the replica. What I would like to do is put "git push" in post-receive, but there is one problem. Post-receive is executed as the user doing git push to first server, so I can't chmod 600 ssh key with no pass. What is the best practice for this? Thanx!

© Stack Overflow or respective owner

Git push from post-receive

Posted by meka on Server Fault See other posts from Server Fault or by meka
Published on 2010-05-28T11:22:28Z Indexed on 2010/05/28 11:33 UTC
Read the original article Hit count: 172

Filed under:
|

I have two servers, let's call them first and second. First one is where the real development is done, and second one should be the replica. What I would like to do is put "git push" in post-receive, but there is one problem. Post-receive is executed as the user doing git push to first server, so I can't chmod 600 ssh key with no pass. What is the best practice for this? Thanx!

© Server Fault or respective owner

Related posts about git

Related posts about replication