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

169 Commits

Author SHA1 Message Date
Aryeh Raber
e59fa533f1 Add --print flag to print output while diagnostics are running 2020-04-25 14:33:24 +02:00
Aryeh Raber
ead9568aca Add "diagnose" command 2020-04-25 14:27:18 +02:00
Matt Stauffer
605af93982 Bump version 2020-04-20 16:48:58 -04:00
Matt Stauffer
4dfd4883ed Bump version 2020-03-13 12:46:27 -04:00
Matt Stauffer
bec26e2e3b Bump version. 2020-01-07 11:41:35 -05:00
Matt Stauffer
0e4fe4047d Merge pull request #888 from drbyte/dirlist
Adds a directory-listing setting for dev convenience
2020-01-07 11:41:07 -05:00
Matt Stauffer
74834d17ea Bump version 2020-01-07 11:37:59 -05:00
Matt Stauffer
b4b2fb841a Bump version 2020-01-06 14:06:02 -05:00
Matt Stauffer
7f88759e2e Merge pull request #893 from drbyte/trust-off-flag
Add --off option for valet trust command
2020-01-06 13:56:34 -05:00
Matt Stauffer
775fba9529 Merge pull request #895 from drbyte/phpdetect
Detect running php when no version constraint specified with use command
2020-01-06 13:55:28 -05:00
Matt Stauffer
4b7677833e Merge pull request #874 from ahmedash95/patch-1
Allow start/restart/stop single service
2020-01-06 13:49:59 -05:00
Chris Brown
116c7a7b8c Detect running php when no version constraint specified with use command
Fixes #756

Previously if `php` was installed as just `php` (the default Homebrew alias), Valet would not detect *which* PHP version was actually installed, and therefore `valet use` might do incorrect or unnecessary installations/links/etc.

NOTE: This does NOT "convert" existing `php` alias to a numbered version. It merely accepts it as-is, but notes its version in an attempt to avoid extra installations.

*NOTE: Specifally tested with PHP 7.4 and 7.3. No promises about old 5.6, etc aliases.*
2020-01-04 13:36:20 -05:00
Chris Brown
9c77a51ff9 Add --off option for valet trust command
While `valet trust` enables (creates) sudoers entries, there was no cleanup/removal option for this, apart from complete forced uninstall of Valet.

This adds `valet trust --off` so that the sudoers entries can be removed from Valet CLI.
2020-01-04 11:05:43 -05:00
Ahmed Ashraf
924feb1592 use stopRunning for phpfpm
Co-Authored-By: Matt Stauffer <mattstauffer@users.noreply.github.com>
2020-01-04 00:10:50 +01:00
Ahmed Ashraf
b3bf506a06 fix styles 2020-01-03 16:18:42 +01:00
Chris Brown
51adf31d9f Adds a directory-listing setting for dev convenience
After running `valet directory-listing on` if a URI points to a directory that exists, but the requested file cannot be found in that directory, a directory listing will be displayed.

A 404 will still happen if the project directory cannot be found.

Running `valet directory-listing off` makes a 404 display (without a listing) if the requested file cannot be found.

Supercedes and closes #349 and closes #587
2020-01-02 19:44:32 -05:00
Matt Stauffer
edbc4fc0d3 Bump version 2019-12-23 10:09:19 -05:00
Matt Stauffer
9b1c58591d Bump version 2019-12-10 23:34:16 -05:00
Matt Stauffer
a05d26f8a4 Bump version 2019-12-10 23:13:48 -05:00
Ahmed Ashraf
d4d8fc3d4a Allow start/restart/stop with a specific service 2019-12-09 10:46:51 +01:00
Matt Stauffer
3b302b7593 Bump version. 2019-12-06 09:43:08 -05:00
Chris Brown
6e01bfb5f4 Allow Valet to uninstall itself
`valet uninstall` only displays information about how to manually uninstall and clean up after Valet.

This PR adds a `--force` parameter, which will forcefully remove Valet and the Homebrew services it installs, as well as clean up the config files and log files.
But for a few post-uninstall composer dependencies, cleanup is very thorough.

This brings idempotency to both `valet install` and `valet uninstall --force`

(There may still be edge cases where other Homebrew or composer packages might create interference with install/uninstall, but this makes things much easier to self-troubleshoot.)
2019-12-05 22:19:55 -05:00
Chris Brown
710fa27651 Fix auto-detection amongst multiple ngrok processes
Ngrok Pro plans allow multiple processes, which means you could be serving several sites simultaneously. This PR allows Valet to correctly identify amongst the active ngrok process URLs.

Fixes #145
2019-12-03 18:34:08 -05:00
Matt Stauffer
30b0684736 Merge pull request #853 from drbyte/dnsmasq-restart
Include dnsmasq in valet start/restart command
2019-12-01 22:06:27 -05:00
Matt Stauffer
0380987fdf Capitalize c in Composer 2019-12-01 22:04:25 -05:00
Matt Stauffer
454ed43f00 Merge pull request #849 from drbyte/patch-1
Add comment to consider running composer global update after switching php version
2019-12-01 22:03:42 -05:00
Matt Stauffer
0681437219 Merge pull request #854 from drbyte/valet-unsecure-all
Add --all parameter to valet unsecure command
2019-12-01 14:55:43 -05:00
Chris Brown
65b0c6aae6 Add detailed uninstall instructions
Previously `valet uninstall` would just shutdown the `nginx` service.

This PR also stops `PHP` and gives a number of instructions on how to do a (nearly) clean uninstall of most Valet dependencies.
And also some troubleshooting tips.
2019-12-01 02:05:08 -05:00
Chris Brown
d6f06045fc Add --all parameter to valet unsecure command
This PR allows passing `--all` to `valet unsecure` to have it remove all certificates from all Valet configs AND from the MacOS Keychain.
This effectively cleans up certificate fragments or broken configs, and can help with troubleshooting.
2019-11-30 16:38:48 -05:00
Chris Brown
cfa8c216fa Include dnsmasq in valet start/restart command
While it's rare that the dnsmasq won't be started, it feels incomplete to not include the service when starting/restarting valet, since valet depends on it.
2019-11-30 16:34:08 -05:00
Chris Brown
e71906616c Add comment to consider running composer global update
When switching to older PHP versions there may be a composer package dependency conflict. This PR adds a note to consider running `composer global update` to update those dependencies. It's only a comment since not all changes in PHP version will require running the update.

Fixes #822
2019-11-30 16:07:38 -05:00
Matt Stauffer
7785fc870e Bump version 2019-11-30 14:19:48 -05:00
Matt Stauffer
879c22f894 Version bump 2019-11-21 16:38:23 -05:00
Matt Stauffer
12f75fc2a8 Bump version 2019-10-29 08:31:35 -04:00
Matt Stauffer
7011629b41 Bump version 2019-10-10 20:49:47 -04:00
James Barnard
b16559a450 Merge branch 'master' into feature/links-with-parked 2019-10-04 07:30:35 +01:00
Matt Stauffer
beda122db0 Bump again 2019-10-03 13:37:43 -04:00
Matt Stauffer
b7867e97ce Bump version 2019-10-03 13:22:03 -04:00
James Barnard
9d4126856d Add 'parked' command to show all sites which have been parked using valet park 'path' 2019-10-02 13:31:06 +01:00
James Barnard
185695b396 Fix #708. Use stopRunning instead of stop to only stop running php services 2019-09-27 10:21:11 +01:00
Matt Stauffer
eb0f03869c Version bump 2019-09-10 20:33:44 -04:00
Matt Stauffer
0072cc2f2e Preemptive version bump 2019-09-10 16:20:26 -04:00
Matt Stauffer
52a168eb96 Bump version to 2.4.0 2019-09-09 15:58:01 -04:00
Matt Stauffer
b14ce74087 Merge pull request #793 from nick-f/add-upgrade-instructions
Add link to upgrade instructions in outdated version error message
2019-08-19 14:39:46 -04:00
Matt Allan
76a0c3222e Fix incorrect comments 2019-08-07 11:11:51 -04:00
Nick Freeland
e7df243d0f Add link to upgrade instructions in outdated error
Previously when checking if the Valet version in use was the latest,
you'd have to go to Valet repo on GitHub, find out that all the docs
were on laravel.com, go there, find the upgrade instructions, and then
upgrade.

This can be simplified by giving the user the option to view the link.
2019-07-09 18:43:04 +10:00
Pete Cooper
79661fa2b8 Fix example log command 2019-06-05 14:55:23 +01:00
Matt Stauffer
a694efc4c5 Pre-emptive version bump 2019-05-14 17:47:29 -04:00
Matt Stauffer
32cf547b47 Replace sortKeys with native ksort to avoid bumping Collect dependency 2019-05-14 17:42:43 -04:00
Matt Stauffer
64c79ab902 Pre-emptive version bump to avoid the shame 2019-05-14 17:29:51 -04:00