From c870933125c470245fbf5aaba6b73a2da51e2581 Mon Sep 17 00:00:00 2001 From: Vincent Sposato Date: Fri, 28 Aug 2015 20:01:29 -0400 Subject: [PATCH] More tweaks to get environment working --- bootstrap/start.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bootstrap/start.php b/bootstrap/start.php index b51e8d9e2c..65f9be0335 100755 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -23,18 +23,18 @@ | given environment, then we will automatically detect it for you. | */ - if (isset($_SERVER[ 'APP_ENV' ]) && $_SERVER[ 'APP_ENV' ] == 'travis-ci') { - $env = $app->detectEnvironment(function() { - return 'travis-ci'; - }); - } else { +// if (isset($_SERVER[ 'APP_ENV' ]) && $_SERVER[ 'APP_ENV' ] == 'travis-ci') { +// $env = $app->detectEnvironment(function() { +// return 'travis-ci'; +// }); +// } else { $env = $app->detectEnvironment( [ 'local' => [ 'homestead', 'AlisonMBP' ], - 'travis-ci' => [ 'travis-linux-*', 'worker-linux-docker-*' ], + 'travis-ci' => getenv('APP_ENV') == 'travis-ci', 'staging' => [ 'stagingweb01' ], 'production' => [ 'www.yourserver.com' ] ] ); - } +// } /* |--------------------------------------------------------------------------