|
@@ -1,13 +1,12 @@
|
|
|
#!/bin/bash
|
|
|
+export PHP_HOME=${IROOT}/php-5.5.17
|
|
|
+export PHP_FPM=$PHP_HOME/sbin/php-fpm
|
|
|
+export NGINX_HOME=${IROOT}/nginx
|
|
|
|
|
|
sed -i 's|database_host: .*|database_host: '"${DBHOST}"'|g' app/config/parameters.yml
|
|
|
sed -i 's|root .*/FrameworkBenchmarks/php-symfony2-stripped| root '"${TROOT}"'|g' deploy/nginx.conf
|
|
|
sed -i 's|/usr/local/nginx/|'"${IROOT}"'/nginx/|g' deploy/nginx.conf
|
|
|
|
|
|
-export PHP_HOME=${IROOT}/php-5.5.17
|
|
|
-export PHP_FPM=$PHP_HOME/sbin/php-fpm
|
|
|
-export NGINX_HOME=${IROOT}/nginx
|
|
|
-
|
|
|
${PHP_HOME}/bin/php app/console cache:clear \
|
|
|
--env=prod --no-debug --no-warmup
|
|
|
${PHP_HOME}/bin/php app/console cache:warmup \
|