Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

init_benchmark.sh 511B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. function clearCacheAndLogs() {
  3. sudo /bin/rm -rf var/cache/*
  4. [ "$?" != "0" ] && exit 1
  5. sudo /bin/chmod -R 777 var/cache
  6. [ "$?" != "0" ] && exit 1
  7. sudo /bin/rm -rf var/log/*
  8. [ "$?" != "0" ] && exit 1
  9. sudo /bin/chmod -R 777 var/log
  10. [ "$?" != "0" ] && exit 1
  11. php bin/console cache:warmup
  12. }
  13. function init() {
  14. clearCacheAndLogs
  15. composer install --no-dev --classmap-authoritative
  16. [ "$?" != "0" ] && exit 1
  17. clearCacheAndLogs
  18. return 0
  19. }