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

780 Commits

Author SHA1 Message Date
Matt Stauffer
8c74df2b34 Bump version 2021-01-21 15:25:45 -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 2021-01-19 09:56:04 -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
Sebastian Popp
8b88f7f571 Update URL for upgrade instructions 2020-12-15 10:52:14 +01:00
Matt Stauffer
af4d25f924 Bump version 2020-12-08 14:10:41 -05:00
Cretu Eusebiu
73d752e404 Import Exception 2020-12-08 20:59:44 +02:00
Mikaël Popowicz
34b1cece72 Merging master. 2020-11-30 09:45:11 +01:00
Matt Stauffer
09d2a3d575 Bump version 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
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
Mikaël Popowicz
a11c086c3f Adding proxy --unsecure option description. 2020-11-29 09:18:47 +01:00
Mikaël Popowicz
a419fb11fe Removing Ngrok stuff from proxy stubs. 2020-11-29 09:14:04 +01: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
Mikaël Popowicz
2ba9f6c977 Updating put phpdoc. 2020-11-28 23:34:26 +01:00
Mikaël Popowicz
ea777a9e94 Adding ability to create unsecure proxy. 2020-11-28 23:22:07 +01:00
Matt Stauffer
b01556272d Bump version 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 2020-11-27 11:29:02 -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 2020-11-24 07:37:52 -05: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 2020-11-18 08:36:31 -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
soilSpoon
e64d5d877b Fix command to get binary path
Because echo is include new line but printf is not include
2020-11-14 23:27:16 +09:00
soilSpoon
6a4cb74392 Modify php binary path to be based on brew prefix 2020-11-14 21:42:13 +09:00
Matt Stauffer
c2fe653dd0 Bump version 2020-11-06 09:39:52 -05:00
Matt Stauffer
1853fa0e0d Merge pull request #990 from drbyte/tld-change-and-proxy-fix
Fix file_get_contents() error in tld command
2020-11-06 09:37:09 -05:00
Chris Brown
2c03a07a71 Fix proxy config rewrite done during a tld change
(it wasn't rewriting all variants of the old tld, thus leaving them (and nginx) broken).
2020-11-05 19:05:53 -05:00
Chris Brown
d9a05cc27e Fix file_get_contents() error in tld command
When we added the `proxy` feature in https://github.com/laravel/valet/pull/913 we inadvertently broke the `tld` command.
It was concatenating old+new tld when searching for existing configs, thus it couldn't find the correct file, which triggered the reported error.

Fixes #984

This PR fixes the lookup by allowing the correct intended lookup tld to be passed in. It also checks that the file exists before trying to read it.
2020-11-05 19:04:55 -05:00
Miguel Piedrafita
cbc8416cd9 Fix symfony default value error
Fatal error: Uncaught Symfony\Component\Console\Exception\LogicException: Cannot set a default value when using InputOption::VALUE_NONE mode. in ~/.composer/vendor/laravel/valet/vendor/symfony/console/Input/InputOption.php:159
2020-11-04 03:42:29 +00:00
Miguel Piedrafita
b888dc4e31 cs 2020-10-28 15:18:07 +00:00
Miguel Piedrafita
9f237f7477 Fix deprecation warning
Fix PHP Deprecated:  Required parameter $all follows optional parameter $domain in /cli/valet.php on line 168
2020-10-28 15:17:12 +00:00
Miguel Piedrafita
778a877fdf Support php@8.0 and php@8.1 2020-10-28 15:16:18 +00:00
Matt Stauffer
2801e03998 Bump version 2020-10-26 10:43:21 -04:00
Matt Stauffer
7fe0e0666b Bump version 2020-06-12 23:25:23 -04:00
Matt Stauffer
6d1e9c3a06 Merge pull request #740 from pedroborges/master
Add support to setup Kirby above webroot
2020-06-12 23:24:00 -04:00
Matt Stauffer
2a9f16a5d5 Version bump 2020-06-02 17:14:08 -04:00
Matt Stauffer
fa47120395 Merge pull request #957 from drbyte/patch-1
Add 'unpark' alias to 'forget' command
2020-06-02 17:13:06 -04:00
Chris Brown
8d9dcd0360 Protect against un-parking Valet's core Sites folder
Fixes #956
2020-06-02 17:09:13 -04:00
Chris Brown
77729058a5 Add 'unpark' alias to 'forget' command
Sometimes I find myself wondering how to un-park a folder, and it takes me awhile to find `forget` in the list.
Adding `unpark` as an alias may be helpful.
2020-06-02 17:07:37 -04:00
Matt Stauffer
7c357c59e2 Bump version 2020-05-07 00:08:03 -04:00
Beau Simensen
1959e95c50 Stops interfering with favicon and robots for proxies 2020-05-06 15:56:59 -05:00