post-receive: Do deployments over ssh to app.humbughq.com.

(imported from commit cec99b18a7e686243e64d69d1882edc6354c5c9a)
This commit is contained in:
Tim Abbott 2012-09-17 11:47:20 -04:00
parent 456a2536d1
commit 1e60511bf6
1 changed files with 2 additions and 1 deletions

View File

@ -20,5 +20,6 @@ args = sys.stdin.read()
oldrev, newrev, refname = args.split() oldrev, newrev, refname = args.split()
if refname in ["refs/heads/master", "refs/heads/test-post-receive"]: if refname in ["refs/heads/master", "refs/heads/test-post-receive"]:
subprocess.check_call(["env", "-u", "GIT_DIR", "/home/humbug/humbug/tools/update-deployment", subprocess.check_call(["ssh", "app.humbughq.com", "--", "env", "-u", "GIT_DIR",
"/home/humbug/humbug/tools/update-deployment",
oldrev, newrev, refname]) oldrev, newrev, refname])