1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Merge pull request #159 from KorvinSzanto/feature/fpm_socket

Use sockets instead of port 9000
This commit is contained in:
Adam Wathan
2016-09-20 10:56:51 -04:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ public function install()
}
$this->files->ensureDirExists('/usr/local/var/log', user());
$this->files->ensureDirExists('/var/run/valet', user());
$this->updateConfiguration();
@@ -61,6 +62,7 @@ public function updateConfiguration()
$contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
$contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
$contents = preg_replace('/^listen = .+$/m', 'listen = /var/run/valet/fpm.socket', $contents);
$this->files->put($this->fpmConfigPath(), $contents);
}

View File

@@ -6,7 +6,7 @@ import VALET_HOME_PATH/Caddy/*
# Slight hack, see: https://github.com/mholt/caddy/issues/1020
internal /dev/null
fastcgi / 127.0.0.1:9000 php {
fastcgi / /var/run/valet/fpm.socket php {
index VALET_SERVER_PATH
}

View File

@@ -10,7 +10,7 @@ https://VALET_SITE:443 {
tls VALET_CERT VALET_KEY
fastcgi / 127.0.0.1:9000 php {
fastcgi / /var/run/valet/fpm.socket php {
index VALET_SERVER_PATH
}