Skip to content

Commit

Permalink
Call deploy target
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Nov 18, 2014
1 parent 10623fe commit 1595a75
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.cgi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# http://punch-hook.beta.hackerspace.sg/

POST=$(</dev/stdin)
exec 2>&1
Expand All @@ -11,7 +12,7 @@ END
umask 002
git fetch origin
git reset --hard origin/master
make
make deploy

# Azure doesn't allow email
test "$POST" && echo $POST | sed -n '/^payload=/s///p' | node bin/pretty-print-json.js | mail -s "HSG update" hendry
# test "$POST" && echo $POST | sed -n '/^payload=/s///p' | node bin/pretty-print-json.js | mail -s "HSG update" hendry

0 comments on commit 1595a75

Please sign in to comment.