dever %!s(int64=6) %!d(string=hai) anos
pai
achega
96abc32af5
Modificáronse 1 ficheiros con 6 adicións e 3 borrados
  1. 6 3
      config/env/localhost/default.php

+ 6 - 3
config/env/localhost/default.php

@@ -24,9 +24,12 @@ $config['debug'] = array
 	'log' => array('type' => 'file'),
 );
 
-$host = 'http://192.168.33.10/';
-$upload = $host . 'jmupload/';
-$uploadcdn = $host . 'jmupload/data/';
+$local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '0.0.0.0';
+
+$host = 'http://'.$local . '/';
+
+$upload = $host . 'upload/';
+$uploadcdn = $host . 'upload/data/';
 
 $config['host'] = array
 (