Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
930a3e89
Commit
930a3e89
authored
Jun 03, 2012
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #736 from joecwallace/cli-env-management
Check against host name for CLI commands
parents
b1707f2b
1aabbc38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
core.php
laravel/core.php
+8
-4
No files found.
laravel/core.php
View file @
930a3e89
...
...
@@ -148,15 +148,19 @@ Request::$foundation = RequestFoundation::createFromGlobals();
|--------------------------------------------------------------------------
|
| 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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment