Browse Source

just fix IP addresses

Keith Newman 9 years ago
parent
commit
cf090b86c3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      frameworks/PHP/silex-orm/setup.sh
  2. 1 1
      frameworks/PHP/silex-orm/web/index.php

+ 1 - 1
frameworks/PHP/silex-orm/setup.sh

@@ -2,7 +2,7 @@
 
 fw_depends php nginx composer
 
-sed -i 's|mysql:host=[0-9]\+.[0-9]\+.[0-9]\+.[0-9]\+|'"mysql:host=${DBHOST}"'|g' web/index.php
+sed -i 's|127.0.0.1|'"${DBHOST}"'|g' web/index.php
 sed -i 's|".*/FrameworkBenchmarks/php-silex-orm|"'"${TROOT}"'|g' deploy/php-silex-orm
 sed -i 's|Directory .*/FrameworkBenchmarks/php-silex-orm|Directory '"${TROOT}"'|g' deploy/php-silex-orm
 sed -i 's|root .*/FrameworkBenchmarks/php-silex-orm|root '"${TROOT}"'|g' deploy/nginx.conf

+ 1 - 1
frameworks/PHP/silex-orm/web/index.php

@@ -14,7 +14,7 @@ $loader = require_once __DIR__.'/../vendor/autoload.php';
 
 $app = new Silex\Application();
 
-$dbh = new PDO('mysql:host=192.168.100.102;dbname=hello_world', 'benchmarkdbuser', 'benchmarkdbpass', array(
+$dbh = new PDO('mysql:host=127.0.0.1;dbname=hello_world', 'benchmarkdbuser', 'benchmarkdbpass', array(
     PDO::ATTR_PERSISTENT => true
 ));