Skip to content

Commit 7337479

Browse files
committed
Revert to using port instead of socket to see if it helps stale page issue
1 parent 4cb2e9d commit 7337479

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

cli/Valet/PhpFpm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function updateConfiguration()
6161

6262
$contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
6363
$contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
64-
$contents = preg_replace('/^listen = .+$/m', 'listen = /var/run/fpm-valet.socket', $contents);
64+
$contents = preg_replace('/^listen = .+$/m', 'listen = 127.0.0.1:9000', $contents);
6565

6666
$this->files->put($this->fpmConfigPath(), $contents);
6767
}

cli/stubs/Caddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import VALET_HOME_PATH/Caddy/*
66
# Slight hack, see: https://github.com/mholt/caddy/issues/1020
77
internal /dev/null
88

9-
fastcgi / /var/run/fpm-valet.socket php {
9+
fastcgi / 127.0.0.1:9000 php {
1010
index VALET_SERVER_PATH
1111
}
1212

cli/stubs/SecureCaddyfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ https://VALET_SITE:443 {
1010

1111
tls VALET_CERT VALET_KEY
1212

13-
fastcgi / /var/run/fpm-valet.socket php {
13+
fastcgi / 127.0.0.1:9000 php {
1414
index VALET_SERVER_PATH
1515
}
1616

tests/PhpFpmTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ public function tearDown()
2222
Mockery::close();
2323
}
2424

25-
public function test_fpm_is_configured_with_the_correct_user_group_and_socket()
25+
public function test_fpm_is_configured_with_the_correct_user_group_and_port()
2626
{
2727
copy(__DIR__.'/files/fpm.conf', __DIR__.'/output/fpm.conf');
2828
resolve(StubForUpdatingFpmConfigFiles::class)->updateConfiguration();
2929
$contents = file_get_contents(__DIR__.'/output/fpm.conf');
3030
$this->assertTrue(strpos($contents, sprintf("\nuser = %s", user())) !== false);
3131
$this->assertTrue(strpos($contents, "\ngroup = staff") !== false);
32-
$this->assertTrue(strpos($contents, "\nlisten = /var/run/fpm-valet.socket") !== false);
32+
$this->assertTrue(strpos($contents, "\nlisten = 127.0.0.1:9000") !== false);
3333
}
3434
}
3535

0 commit comments

Comments
 (0)