HosipLan

Untitled

Sep 27th, 2014
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.72 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. oldrev="$1"
  4. newrev="$2"
  5.  
  6. # --- Safety check
  7. if [ -z "$GIT_DIR" ]; then
  8.         echo "Don't run this script from the command line." >&2
  9.         echo " (if you want, you could supply GIT_DIR then run" >&2
  10.         echo "  $0<oldrev> <newrev>)" >&2
  11.         exit 1
  12. fi
  13.  
  14. echo "[Composer]: $(composer --working-dir="$GIT_DIR/.." dump-autoload)"
  15. echo "[Cache]: flushing redis db 2 ... $(redis-cli -n 2 flushdb)"
  16. echo "[Cache]: cleaning filesystem cache ..."
  17.  
  18. /usr/bin/find $(pwd)/temp/cache/ -name "_*" -type d -exec rm -rf {} \; 2> /dev/null
  19. /bin/rm -R $(pwd)/tests/tmp/*/ 2> /dev/null
  20.  
  21.  
  22. # /usr/local/bin/php $(pwd)/www/index.php orm:generate:proxies  1> $(pwd)/log/generate-proxies.log &
  23.  
  24. # --- Finished
  25. exit 0
Advertisement
Add Comment
Please, Sign In to add comment