https://github.com/opensvc/collector
This package provides the code to run Opensvc Collector
This githook ensure fresh static files are served when new release is done. static files are served from this location based on git HEAD ref
cat > .git/hooks/pre-commit <<-EOF
CID="\$(git show HEAD | head -n 1 | awk '{print \$NF}')"
echo "code_rev=\"\$CID\"" > $PWD/init/models/version.py
git add init/models/version.py
EOF
chmod +x .git/hooks/pre-commit