webhook-deploy.sh 192 B

12345678
  1. #!/bin/bash
  2. # update bare repos
  3. echo "Updating bare repos"
  4. su -c "git --git-dir=git-repositories/DOMAIN.git fetch origin prod:prod" USER
  5. # deploy prod
  6. cd www/DOMAIN/
  7. su -c "./deploy.sh" USER