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

761 Commits

Author SHA1 Message Date
Matt Stauffer
f8188596c4 Bump version 2021-07-20 22:13:08 -04:00
Oliver Payne
c6959fd688 Typo fix 2021-07-13 10:43:15 +02:00
Jakub Tobiasz
dbf8f0b89e Move fixing the SCRIPT_FILENAME from server.php to the SymfonyValetDriver.php 2021-07-04 11:22:01 +02:00
Matt Stauffer
f1c1400b7d Bump Version 2021-06-14 18:52:33 -04:00
Matt Stauffer
78ee4bf84b Bump version 2021-06-14 13:07:29 -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
Matt Stauffer
b5fde86c4a Bump version 2021-06-10 13:19:13 -04:00
Matt Stauffer
b10bbf0555 Bump version 2021-05-01 14:56:58 -04:00
Mikaël Popowicz
00707ce04c Reverting secure.valet.conf. 2021-04-30 21:08:29 +02: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
b64b9bd81a Removing Ngrok stuff from proxy stubs. 2021-04-26 09:37:18 +02:00
Mikaël Popowicz
bfe95c26dd ♻️ Refactoring secure proxy stub. Fixing SiteTest. 2021-04-23 22:18:14 +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
Matt Stauffer
d312a588f3 Bump version 2021-04-02 22:25:50 -04:00
Matt Stauffer
a59a4624fa Small changes to allow Valet to be used in non-CLI contexts 2021-03-31 11:09:37 -04:00
Matt Stauffer
2cead8d611 Build v2.14.0 2021-03-29 13:44:59 -04: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
93931f0e27 ♻️ Check if loopback input is a valid IP address. 2021-02-24 00:03:03 +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
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
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01:00
Matt Stauffer
cc01db7eb9 Bump version 2021-01-22 21:47:14 -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 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