irongit

The elusive post-receive example that I so often need

perfect

FIRST_NAME LAST_NAMEauthored
parent 5a8663dcommit d054bcb1bb8490ebdd3a43f24b68ff281a895f72Browse files

1 file changed, +6 -5

+6-5post-receive
@@ -2,14 +2,15 @@
22
33 # define the project details
44 project=vflcountdown
5-base='/web/$project'
5+base=/web/$project
66
77 while read oldrev newrev refname
88 do
99 branch=`echo "$refname" | sed 's:.*/::'`
10- worktree='$base/$project-$branch'
11- git --work-tree=$worktree --git-dir=$base.git checkout -f $branch
10+ worktree=$base/$project-$branch
11+ echo $worktree
12+ mkdir -p $worktree
13+ git --work-tree=$worktree --git-dir=$base checkout -f $branch
1214 cd $worktree
13- # project commands
14- npm run build
15+ bash entrypoint.sh
1516 done