fixed configuration issue

This commit is contained in:
arzynik 2013-03-27 15:31:35 -04:00
parent 87499a8de5
commit 55a9efaff8
2 changed files with 4 additions and 0 deletions

View File

@ -155,6 +155,7 @@ class Cana extends Cana_Model {
} }
$cmd = c::config()->dirs->root.'cli/timeout.php'.$sleep.' -c='.str_replace("'",'"',escapeshellarg($encoded)); $cmd = c::config()->dirs->root.'cli/timeout.php'.$sleep.' -c='.str_replace("'",'"',escapeshellarg($encoded));
if ($async) { if ($async) {
exec('nohup '.$cmd.' > /dev/null 2>&1 &'); exec('nohup '.$cmd.' > /dev/null 2>&1 &');
} else { } else {

View File

@ -36,6 +36,9 @@ class Crunchbutton_App extends Cana_App {
case 'crunchbutton.localhost': case 'crunchbutton.localhost':
$env = 'local'; $env = 'local';
break; break;
default:
$env = 'local';
break;
} }
switch ($_SERVER['__HTTP_HOST']) { switch ($_SERVER['__HTTP_HOST']) {