1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 16:50:09 +01:00
Commit Graph

434 Commits

Author SHA1 Message Date
Nasir Uddin Nobin
5c1043776e Apply refactor & cleanup from the code review 2022-02-15 16:44:29 +06:00
NasirNobin
794e366ba5 StyleCI Patch 2022-02-15 05:05:21 +06:00
NasirNobin
8de8d9bb26 Stop unused PHP versions 2022-02-15 04:49:03 +06:00
Nasir Uddin Nobin
c247dc9709 Add Valet PHP isolation remover option & apply more suggestions from code review 2022-02-15 02:38:46 +06:00
Nasir Uddin Nobin
acf190c57c Apply suggestions from code review
Co-authored-by: Matt Stauffer <mattstauffer@users.noreply.github.com>
2022-02-15 02:05:48 +06:00
NasirNobin
37b4af4113 Multiple/Parallel PHP Version Support for Valet 2022-02-06 13:56:35 +06:00
Matt Stauffer
6ddca24508 Merge pull request #1178 from cristiancalara/master
Stop root homebrew services on php version switch
2022-01-25 19:33:19 -05:00
Dries Vints
3768e199b9 Add ARM support for ngrok 2022-01-18 11:44:17 +01:00
Cristian Calara
70335bade8 Fix styleci & drop typehint for php5.6 compatibility 2022-01-08 11:05:41 +02:00
Cristian Calara
9e3a89c742 Stop root homebrew services on php version switch
Before the change, when running `valet use` the code intended to stop currently running PHP services. But the `getRunningServices` method only returned non-root running services. As PHP services started by Valet are run using `sudo` (so running as root), they were not returned and subsequently not stopped.

This change is intended to fix the above and stop PHP services that are started by Valet on a PHP version switch.
2022-01-08 10:30:13 +02:00
Dries Vints
f980900727 Fix guzzle issues 2021-12-23 09:21:45 +01:00
Marco Rieser
3e04917298 Access tag_name directly
Since `$response` is the response body now the body below is obsolete.
2021-12-22 17:57:55 +01:00
Matt Stauffer
0a4087b15b Merge pull request #1161 from jaylinski/ca-expiry
Avoid expiring of root certificate authority
2021-12-21 09:26:13 -05:00
Bram Ceulemans
4c98f63b96 Replace HTTPFul with Guzzle 2021-12-20 16:49:06 +01:00
Jakob Linskeseder
1f15953c73 Avoid expiring of root certificate authority
Resolves #1103
2021-12-19 21:10:13 +01:00
Richard Torenvliet
4283dae3cf Add expireIn= option and use in the openssl command 2021-12-13 15:16:53 +01:00
Matt Stauffer
18b5ed08f3 Merge pull request #1111 from caelumek/master
Set Brew PHP latest version to 8.1
2021-12-06 12:06:37 -05:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Bartosz Piotr Pazola
b92592d6be Set Brew PHP latest version to 8.1 2021-11-29 11:26:26 +01:00
Antonio Carlos Ribeiro
a13832c95b Fix precedence bug 2021-08-29 13:50:25 +02:00
Antonio Ribeiro
df1a95c386 Add support for parked domains to some commands 2021-08-27 17:09:01 +02:00
Chris Brown
5d8a94fa54 Fix comment typo 2021-08-15 17:10:17 -04:00
Chris Brown
c549c1786a Stop non-root homebrew services during restarts
This is intended to assist with avoiding having competing non-root instances of valet dependency services running due to userland use of brew CLI commands.

Now, when running `valet stop` or `valet restart` it will (silently) attempt to stop the non-root instance (ignoring any errors thrown), before stopping (and/or starting) the sudo/root instance which is normally used.

(Though obvious, I'll point out that this only applies to services Valet manages.)

Fixes #1057
2021-06-13 01:33:22 -04:00
Mikaël Popowicz
01f4b582e6 ♻️ Refactoring proxy command. Proxy is not secured by default. 2021-04-30 14:31:55 +02:00
Mikaël Popowicz
7fdcdd3544 🚚 Use insecure instead of unsecure. 2021-04-26 18:00:33 +02:00
Mikaël Popowicz
3098f5ff0a Merge branch 'master' into feature/unsecure-proxy
# Conflicts:
#	cli/Valet/Site.php
#	cli/stubs/proxy.valet.conf
2021-04-23 22:01:16 +02:00
Mikaël Popowicz
3ecf64d339 💡 Updating addLoopbackAlias phpDoc. 2021-02-24 09:25:40 +01:00
Mikaël Popowicz
9045f3a53e 🔥 Removing useless code. 2021-02-24 09:25:03 +01:00
Mikaël Popowicz
727baa6c09 🐛 Ensure loopback alias and launch daemon file exist after re-installation. 2021-02-24 00:45:46 +01:00
Mikaël Popowicz
5f46ac4e23 Adding uninstallLoopback. 2021-02-24 00:27:13 +01:00
Mikaël Popowicz
2f6dc53e2d 💬 Updating aliasLoopback phpDoc. 2021-02-24 00:04:05 +01:00
Mikaël Popowicz
a0eeceb13c ♻️ Refactoring resecureForNewConfiguration conditions. 2021-02-24 00:02:29 +01:00
Mikaël Popowicz
a44743e117 Adding diagnose commands. 2021-02-23 23:48:19 +01:00
Mikaël Popowicz
a876175c6a ♻️ Refactoring resecureForNew* methods to resecureForNewConfiguration. 2021-02-23 22:32:50 +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
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01: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
Chris Brown
383c1d009f Fix valet bin dir linking for ARM / M1 macs
Fixes #1023

Ref #992
2021-01-18 12:19:56 -05:00
Mikaël Popowicz
34b1cece72 Merging master. 2020-11-30 09:45:11 +01: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
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
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
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
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
soilSpoon
cbb59c2251 Update brew list command to remove deprecation warning 2020-11-27 22:21:27 +09:00