Skip to content

Commit

Permalink
Merge pull request laravel#32 from WouterJ/patch-1
Browse files Browse the repository at this point in the history
Support built-in PHP server
  • Loading branch information
taylorotwell committed Apr 16, 2015
2 parents 729490d + e5e4ac6 commit a405306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ public function basePath($path = null)
return $this->basePath.($path ? '/'.$path : $path);
}

if ($this->runningInConsole()) {
if ($this->runningInConsole() || php_sapi_name() === 'cli-server') {
$this->basePath = getcwd();
} else {
$this->basePath = realpath(getcwd().'/../');
Expand Down

0 comments on commit a405306

Please sign in to comment.