From 50b88cb5711542501555720b6fc5cc04216d803e Mon Sep 17 00:00:00 2001 From: "Matthew J. Mucklo" Date: Fri, 6 Dec 2013 13:28:59 -0800 Subject: [PATCH] should warmup after clear #230 and #520 --- php-symfony2-stripped/setup.py | 1 + php-symfony2/setup.py | 1 + 2 files changed, 2 insertions(+) diff --git a/php-symfony2-stripped/setup.py b/php-symfony2-stripped/setup.py index 5d22012a0eb..f56852ffd38 100644 --- a/php-symfony2-stripped/setup.py +++ b/php-symfony2-stripped/setup.py @@ -12,6 +12,7 @@ def start(args, logfile, errfile): try: subprocess.check_call("composer.phar install --optimize-autoloader", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) subprocess.check_call("php app/console cache:clear --env=prod --no-debug", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) + subprocess.check_call("php app/console cache:warmup --env=prod --no-debug", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) subprocess.check_call("sudo chown -R www-data:www-data php-symfony2", shell=True, stderr=errfile, stdout=logfile) subprocess.check_call("sudo php-fpm --fpm-config config/php-fpm.conf -g " + home + "/FrameworkBenchmarks/php-symfony2/deploy/php-fpm.pid", shell=True, stderr=errfile, stdout=logfile) subprocess.check_call("sudo /usr/local/nginx/sbin/nginx -c " + home + "/FrameworkBenchmarks/php-symfony2/deploy/nginx.conf", shell=True, stderr=errfile, stdout=logfile) diff --git a/php-symfony2/setup.py b/php-symfony2/setup.py index 5d22012a0eb..f56852ffd38 100644 --- a/php-symfony2/setup.py +++ b/php-symfony2/setup.py @@ -12,6 +12,7 @@ def start(args, logfile, errfile): try: subprocess.check_call("composer.phar install --optimize-autoloader", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) subprocess.check_call("php app/console cache:clear --env=prod --no-debug", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) + subprocess.check_call("php app/console cache:warmup --env=prod --no-debug", shell=True, cwd="php-symfony2", stderr=errfile, stdout=logfile) subprocess.check_call("sudo chown -R www-data:www-data php-symfony2", shell=True, stderr=errfile, stdout=logfile) subprocess.check_call("sudo php-fpm --fpm-config config/php-fpm.conf -g " + home + "/FrameworkBenchmarks/php-symfony2/deploy/php-fpm.pid", shell=True, stderr=errfile, stdout=logfile) subprocess.check_call("sudo /usr/local/nginx/sbin/nginx -c " + home + "/FrameworkBenchmarks/php-symfony2/deploy/nginx.conf", shell=True, stderr=errfile, stdout=logfile)