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

1073 Commits

Author SHA1 Message Date
Mikaël Popowicz
7bb5326a27 🐛 Fixing default Nginx stub. 2021-02-22 18:49:36 +01:00
Mikaël Popowicz
0c0ab726c0 🐛 Fixing Nginx configuration.
 Adding alias generation and launch daemon generation.
2021-02-22 18:43:39 +01:00
Mikaël Popowicz
545c075b35 🔥 Removing address alias on loopback command. 2021-02-22 08:18:55 +01:00
Mikaël Popowicz
a4fef45055 Add missing configuration mock. 2021-02-22 00:02:22 +01:00
Mikaël Popowicz
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01:00
Matt Stauffer
cc01db7eb9 Bump version v2.13.19 2021-01-22 21:47:14 -05:00
Matt Stauffer
c467a030b7 Merge pull request #1029 from drbyte/patch-1
Fix issue with `valet share` on Hyper
2021-01-22 21:46:13 -05:00
Chris Brown
1a35871e56 Fix issue with valet share on Hyper
Related: https://github.com/laravel/valet/issues/790#issuecomment-765559963

Changing from `info()` to just `output()` avoids ANSI char output for color display, and this particular line doesn't "need" colored output particularly.
2021-01-22 15:08:23 -05:00
Matt Stauffer
8c74df2b34 Bump version v2.13.18 2021-01-21 15:25:45 -05:00
Matt Stauffer
9efa9d120c Merge pull request #1028 from drbyte/patch-1
Force removal of orphaned valet.sock file
2021-01-21 15:24:51 -05:00
Matt Stauffer
cd930ed9c9 Merge pull request #1018 from mrk-j/patch-1
Site path found, break from loops
2021-01-21 15:23:11 -05:00
Chris Brown
dd17bb9e9a Force removal of orphaned valet.sock file
When switching PHP versions the valet.sock file may not be removed if the linked PHP process doesn't get shut down properly. This can happen when Homebrew switches default `php` version aliases and if one has started multiple homebrew PHP instances under different permission levels or different users.

This patch merely forces the .sock file's removal when switching versions. 

In very rare cases a filesystem lock may prevent the file's proper removal, in which case a reboot might be required.

To prevent these issues, keep Homebrew up-to-date by running `brew upgrade` on a regular basis (weekly is good).
2021-01-21 11:33:47 -05:00
Matt Stauffer
86a830ac89 Bump version v2.13.17 2021-01-19 09:56:04 -05:00
Matt Stauffer
1d7a9dfe4e Merge pull request #1025 from drbyte/bin-dir-symlink
Fix valet bin dir linking for ARM / M1 macs
2021-01-19 09:44:46 -05:00
Chris Brown
383c1d009f Fix valet bin dir linking for ARM / M1 macs
Fixes #1023

Ref #992
2021-01-18 12:19:56 -05:00
Mark
f994e01629 Update server.php 2020-12-30 23:52:01 +01:00
Mark
2c6ad70cc1 Site path found, break from loops 2020-12-30 14:24:58 +01:00
Matt Stauffer
35676120a7 Merge pull request #1015 from sebastianpopp/patch-1
Update URL for upgrade instructions
2020-12-15 08:36:55 -05:00
Sebastian Popp
8b88f7f571 Update URL for upgrade instructions 2020-12-15 10:52:14 +01:00
Matt Stauffer
af4d25f924 Bump version v2.13.16 2020-12-08 14:10:41 -05:00
Matt Stauffer
209f0d24ed Merge pull request #1014 from cretueusebiu/patch-1
Import Exception
2020-12-08 14:09:57 -05:00
Cretu Eusebiu
73d752e404 Import Exception 2020-12-08 20:59:44 +02:00
Matt Stauffer
09d2a3d575 Bump version v2.13.15 2020-11-29 22:54:57 -05:00
Matt Stauffer
04d42b3895 Merge pull request #1008 from drbyte/valet-use-improvements
Improvements to "valet use" command
2020-11-29 22:49:25 -05:00
Matt Stauffer
acb55d37b5 Merge pull request #1004 from drbyte/phpunit-polyfill
Update test suite to phpunit 9.5
2020-11-29 22:46:21 -05:00
Matt Stauffer
3564170a50 Merge pull request #1006 from drbyte/php8-as-default
Specify 8.0 as latest PHP version
2020-11-29 22:44:47 -05:00
Matt Stauffer
53ee6f099a Merge pull request #1007 from drbyte/diagnose-include-resolv
Include resolv conf in diagnose command
2020-11-29 22:44:34 -05:00
Chris Brown
0b341a7ca1 Update test suite to phpunit 9.5
Update test suite to phpunit 9.5 syntax
Refactored to use polyfill for older PHP versions via `yoast/phpunit-polyfills`

Note: this includes 2 important differences from usual phpunit test suites:
- instead of extending `PHPUnit\Framework\TestCase` we extend `Yoast\PHPUnitPolyfills\TestCases\TestCase`
- instead of handling fixtures via `setUp()` and `tearDown()` we use `set_up()` and `tear_down()` respectively

Comment regarding formatting: I chose to use the FQDN in the `extends` syntax of the class declaration instead of using `use` so that it is more quickly apparent that we're doing something slightly different than usual phpunit syntax, particularly in regards to the set_up() / tear_down() methods that appear immediately following the `extends` line.
2020-11-29 12:10:05 -05:00
Chris Brown
7d98b24330 Update tests for valet-use improvements 2020-11-28 23:52:28 -05:00
Chris Brown
98e7a02a3c Add shivammathur/php tap for supporting unofficial PHP releases 2020-11-28 23:49:03 -05:00
Chris Brown
78bfd8b9c2 Include resolv conf in diagnose command
Including the linked resolv.conf helps with troubleshooting situations where dns appears to not be working.
(Mostly the goal is to determine whether a conflicting entry is listed too early, or if the localhost is not listed first when others are present.)
2020-11-28 23:41:10 -05:00
Chris Brown
a03e2e09ce Improvements to "valet use" command
- properly detects if the requested version is already installed, and skips re-installing/re-starting/re-configuring
- allows --force to re-configure anyway
- smarter treatment of 'php' when it's aliased to another specific installed version
2020-11-28 23:38:30 -05:00
Chris Brown
6d2907961b Make [phpVersion] parameter optional for "valet use" command 2020-11-28 23:34:17 -05:00
Chris Brown
be63541dd8 Normalize PHP version parsing 2020-11-28 23:17:21 -05:00
Chris Brown
9da8e96d87 Specify 8.0 as latest PHP version
Specify 8.0 as latest PHP version
This is used mainly for new installs
2020-11-28 23:12:29 -05:00
Matt Stauffer
b01556272d Bump version v2.13.14 2020-11-27 11:34:19 -05:00
Matt Stauffer
518a009ff7 Merge pull request #996 from drbyte/fpm-errorlog-to-user-dir
Point PHP-FPM error_log to user directory
2020-11-27 11:34:01 -05:00
Matt Stauffer
1208b89726 Bump version v2.13.3 2020-11-27 11:29:02 -05:00
Matt Stauffer
3f0f157363 Merge pull request #1003 from soilSpoon/feature/brew
Update brew list command to remove deprecation warning
2020-11-27 11:28:39 -05:00
soilSpoon
cbb59c2251 Update brew list command to remove deprecation warning 2020-11-27 22:21:27 +09:00
Matt Stauffer
21f0549bd5 Bump version v2.13.2 2020-11-24 07:37:52 -05:00
Matt Stauffer
c79244b29c Merge pull request #997 from gehrisandro/prefer-site-name-over-domain
prefer site name over domain name when detecting the site path
2020-11-24 07:36:22 -05:00
Sandro Gehri
e1aeb0b2ce detect preferred site with introducing a new variable 2020-11-23 23:38:40 +01:00
Sandro Gehri
63dce63a29 prefer site name over domain name when detecting the site path 2020-11-23 21:39:29 +01:00
Chris Brown
ce0999f8cd Point PHP-FPM error_log to user directory
Old: `/usr/local/var/log/php-fpm.log`
New: `~/.config/valet/Log/php-fpm.log`

(We already put `~/.config/valet/Log/nginx-error.log` there)

This avoids ARM Mac differences in directory paths.
2020-11-23 09:21:55 -05:00
Matt Stauffer
81dcdbb960 Bump version v2.13.1 2020-11-18 08:36:31 -05:00
Matt Stauffer
bdd1d93702 Merge pull request #943 from bramus/patch-valet-share-vscode-fix
Pass USER as envvar when relaunching valet using sudo. Fixes #904
2020-11-18 08:31:30 -05:00
Matt Stauffer
f4bf0ebd9f Merge pull request #952 from drbyte/case-sensitive
Allow serving mixed case folders on case sensitive file systems
2020-11-18 08:29:39 -05:00
Matt Stauffer
04bfb42816 Merge pull request #992 from soilSpoon/modify-php-path
Modify brew packages path to be based on brew prefix
2020-11-16 08:38:05 -05:00
soilSpoon
2c06a5d4f0 Modify the paths of packages to be based on brew prefix
- brew
- dnsmasq
- nginx
- php-fpm
- log
- etc
2020-11-15 14:38:18 +09:00