mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Show install, start, stop and restart log info
This commit is contained in:
@@ -53,6 +53,8 @@ function install()
|
||||
*/
|
||||
function installConfiguration()
|
||||
{
|
||||
info('Installing nginx configuration...');
|
||||
|
||||
$contents = $this->files->get(__DIR__.'/../stubs/nginx.conf');
|
||||
|
||||
$this->files->putAsUser(
|
||||
@@ -94,6 +96,8 @@ function installServer()
|
||||
*/
|
||||
function installNginxDirectory()
|
||||
{
|
||||
info('Installing nginx directory...');
|
||||
|
||||
if (! $this->files->isDir($nginxDirectory = VALET_HOME_PATH.'/Nginx')) {
|
||||
$this->files->mkdirAsUser($nginxDirectory);
|
||||
}
|
||||
@@ -132,6 +136,8 @@ function restart()
|
||||
*/
|
||||
function stop()
|
||||
{
|
||||
info('Stopping nginx....');
|
||||
|
||||
$this->cli->quietly('sudo brew services stop '. $this->brew->nginxServiceName());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user