Hacker News new | ask | show | jobs
by htamas 1179 days ago
How do you use Git to deploy things? Sorry if it's a dumb question, I'm unfamiliar with Ansible.
1 comments

A git post receive hook. You can set up a bare git repo which lets you push code to it. Then when you push to it, the post receive hook runs which can be any script you want. In this case you can run the commands to restart your containers or whatever else you need to do.