You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
919 B

  1. #!/usr/bin/env bash
  2. set -eo pipefail
  3. # The post_compile hook is run by heroku-buildpack-python
  4. echo "-----> I'm post-compile hook"
  5. # Work around Heroku bug whereby pylibmc isn't available during
  6. # compile phase. See: https://github.com/heroku/heroku-buildpack-python/issues/57
  7. export MEMCACHE_SERVERS='' MEMCACHIER_SERVERS=''
  8. if [ -f bin/install_nodejs ]; then
  9. echo "-----> Running install_nodejs"
  10. chmod +x bin/install_nodejs
  11. bin/install_nodejs
  12. if [ -f bin/install_less ]; then
  13. echo "-----> Running install_lessc"
  14. chmod +x bin/install_less
  15. bin/install_less
  16. fi
  17. fi
  18. if [ -f bin/run_collectstatic ]; then
  19. echo "-----> Running run_collectstatic"
  20. chmod +x bin/run_collectstatic
  21. bin/run_collectstatic
  22. fi
  23. if [ -f bin/run_compress ]; then
  24. echo "-----> Running run_compress"
  25. chmod +x bin/run_compress
  26. bin/run_compress
  27. fi
  28. echo "-----> Post-compile done"