1
0
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:
Antonio Carlos Ribeiro
2017-02-21 12:04:45 -03:00
parent 2e0e2c1fa4
commit 6f8c14271a
4 changed files with 23 additions and 3 deletions

View File

@@ -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());
}