Skip to content

Instantly share code, notes, and snippets.

View alissonbovenzo's full-sized avatar
:electron:
In code we trusth

Alisson Desandro Bovenzo alissonbovenzo

:electron:
In code we trusth
View GitHub Profile
@alissonbovenzo
alissonbovenzo / gist:7adce006864f02d71f65fe54d16aaea3
Created April 1, 2016 07:35 — forked from edmondburnett/gist:40e7db34416fdc734846
Push-to-Deploy, Python edition - git post-receive hook script
#!/usr/bin/env python
# post-receive hook for git-based deployments
# https://edmondburnett.com/post/python-push-to-deploy
import sys
import os
from subprocess import call
# configuration
deploy_to_path = '/path/to/deploy/directory/'