Created
September 30, 2014 18:23
-
-
Save alnutile/64a393c6593572397578 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Detect The Application Environment | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Laravel takes a dead simple approach to your application environments | |
| | so you can just specify a machine name for the host that matches a | |
| | given environment, then we will automatically detect it for you. | |
| | | |
| */ | |
| $env = $app->detectEnvironment(function(){ | |
| if(!file_exists(__DIR__ . '/../.env_boot.php')) | |
| { | |
| $env = 'codeship'; | |
| } | |
| else | |
| { | |
| $env = require_once(__DIR__ . '/../.env_boot.php'); | |
| } | |
| return $env; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment