Skip to content

Commit

Permalink
Merge pull request #7222 from suwardany/bugfix/artisan-serve-5
Browse files Browse the repository at this point in the history
[5.0] Execute artisan serve from the public dir
  • Loading branch information
taylorotwell committed Feb 23, 2015
2 parents bf0abe3 + e699add commit 0b16ba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/Console/ServeCommand.php
Expand Up @@ -26,17 +26,17 @@ class ServeCommand extends Command {
*/
public function fire()
{
chdir($this->laravel->basePath());
chdir($this->laravel->publicPath());

$host = $this->input->getOption('host');

$port = $this->input->getOption('port');

$public = $this->laravel->publicPath();
$base = $this->laravel->basePath();

$this->info("Laravel development server started on http://{$host}:{$port}");

passthru('"'.PHP_BINARY.'"'." -S {$host}:{$port} -t \"{$public}\" server.php");
passthru('"'.PHP_BINARY.'"'." -S {$host}:{$port} \"{$base}\"/server.php");
}

/**
Expand Down

0 comments on commit 0b16ba4

Please sign in to comment.