File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments