8000 CLI env management by joecwallace · Pull Request #696 · laravel/laravel · GitHub
[go: up one dir, main page]

Skip to content

CLI env management #696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions laravel/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,19 @@
|--------------------------------------------------------------------------
|
| Next we're ready to determine the application environment. This may be
| set either via the command line options, or, if the request is from
| the web, via the mapping of URIs to environments that lives in
| the "paths.php" file for the application and is parsed.
| set either via the command line options or via the mapping of URIs to
| environments that lives in the "paths.php" file for the application and
| is parsed. When determining the CLI environment, the "--env" CLI option
| overrides the mapping in "paths.php".
|
*/

if (Request::cli())
{
$environment = get_cli_option('env');

if (! isset($environment)) {
$environment = Request::detect_env($environments, gethostname());
}
}
else
{
Expand Down
0