deploy-local-httpd.sh 500 B

12345678910111213141516171819
  1. #!/bin/bash
  2. # Deploy on local Apache2 Httpd instance
  3. gitRoot=`git rev-parse --show-toplevel`
  4. from="$gitRoot/web/"
  5. dest="/var/www/html/"
  6. echo "A copy will be peformed from ..."
  7. echo $from
  8. echo " ... to ... "
  9. echo $dest
  10. bash "$gitRoot/undeployed/scripts/deploy/up-date.sh"
  11. bash "$gitRoot/undeployed/scripts/deploy/up-version.sh"
  12. rsync --delete --recursive --verbose $from $dest
  13. git checkout -- "$gitRoot/web/include/generated/date.txt"
  14. git checkout -- "$gitRoot/web/include/generated/version.txt"