Having a quick go with Heroku buttons!

This commit is contained in:
James Brooks
2014-11-20 19:29:06 +00:00
parent f48e390adb
commit 957f81f730
5 changed files with 45 additions and 4 deletions

View File

@@ -24,11 +24,15 @@ $app = new Illuminate\Foundation\Application;
|
*/
$env = $app->detectEnvironment(array(
$env = $app->detectEnvironment(function() {
// Take care of Heroku deployment for us.
if ($envName = getenv('ENV')) {
return $envName;
}
'local' => array('homestead', '*.local', '*.config', 'jbrooksuk'),
));
// Always fall back to local.
return 'local';
});
/*
|--------------------------------------------------------------------------