Skip to content

Instantly share code, notes, and snippets.

@edmondburnett
edmondburnett / gist:40e7db34416fdc734846
Last active April 17, 2019 16:21
Push-to-Deploy, Python edition - git post-receive hook script
#!/usr/bin/env python
# post-receive hook for git-based deployments
import sys
import os
from subprocess import call
# configuration
deploy_to_path = '/path/to/deploy/directory/'
deploy_branch = 'master'