Browse Source

Add "--optimize-autoloader" to `composer.phar install` command

Marc Weistroff 12 years ago
parent
commit
02b76be6dc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      php-silex/setup.py

+ 1 - 2
php-silex/setup.py

@@ -1,4 +1,3 @@
-
 import subprocess
 import sys
 import setup_util
@@ -17,7 +16,7 @@ def start(args):
     #subprocess.check_call("sudo a2ensite cake", shell=True)
     #subprocess.check_call("sudo chown -R www-data:www-data cake", shell=True)
     #subprocess.check_call("sudo /etc/init.d/apache2 start", shell=True)
-    subprocess.check_call("composer.phar install", shell=True, cwd="php-silex")        
+    subprocess.check_call("composer.phar install --optimize-autoloader", shell=True, cwd="php-silex")        
     subprocess.check_call("sudo php-fpm --fpm-config config/php-fpm.conf -g " + home + "/FrameworkBenchmarks/php-silex/deploy/php-fpm.pid", shell=True)
     subprocess.check_call("sudo /usr/local/nginx/sbin/nginx -c " + home + "/FrameworkBenchmarks/php-silex/deploy/nginx.conf", shell=True)
     return 0