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

20 Commits

Author SHA1 Message Date
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
Mikaël Popowicz
2d5ee9d7cc Add loopback command. 2021-02-21 23:21:12 +01: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
Chris Brown
dfd333a997 Remove unnecessary imports 2020-01-07 11:29:30 -05:00
Chris Brown
8dc5836492 Cleanup old tld refs when switching tld or uninstalling
Previously we would leave old tld stubs around; while it's harmless, it's less tidy.
2020-01-07 11:28:50 -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
Matt Stauffer
d301e4ac11 Merge pull request #856 from drbyte/dnsmasq-customconfig
Use custom dnsmasq.d folder for easier config and support
2019-12-05 15:15:18 -05:00
Chris Brown
02ad7f44ff Dnsmasq allows use of a common config folder, much like nginx and php do.
This PR changes Valet's default config process to empower this feature, which makes installation less intrusive, and easier to identify and remove valet-specific customizations.

This will make for easier troubleshooting
... and easier customizing (such as dropping in a custom logging config, additional TLDs, alternate DNS resolvers, etc)

Also removes old dnsmasq configs used by prior Valet versions
2019-12-02 15:02:56 -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
Matt Stauffer
7eb1aec410 Merge pull request #449 from eberkund/master
Move ~/.valet to ~/.config/valet
2018-08-30 08:33:28 -04:00
Erik Berkun-Drevnig
19fe60880c Fix DnsMasq path, remove incorrect use of rewrite secure 2017-10-22 16:39:50 -04:00
Chris Brown
58e4645fe2 Change valet domain command to valet tld
Fixes #144
".test" or ".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)

The use of `valet domain` is currently preserved as an alias for `valet tld`, but will be removed at a later date.
2017-10-17 15:47:39 -04:00
Chris Brown
bd5c998019 Change valet domain command to valet tld
Fixes #144
".dev" is really a TLD, not a "domain" in the conventional sense.
Changing the command to `valet tld` more accurately reflects the purpose of the command (to set or get the configured TLD served by Valet)
2017-10-17 13:18:11 -04:00
Adam Wathan
ac06650483 Set default listen-address in dnsmasq config
I was having issues where dnsmasq was trying to listen on some weird
IPv6 address by default; setting this explicitly solves that.
2017-10-17 12:04:35 -04:00
Lasse Rafn
cf6602f2ea Update DnsMasq.php 2017-10-01 00:11:46 +02:00
Erik Berkun-Drevnig
0fd37b0fed Change paths from ~/.valet to ~/.config/valet 2017-09-28 14:44:14 -04:00
Chris Brown
70fd176838 Update DnsMasq.php 2017-09-18 12:00:36 -04:00
Lasse Rafn
670f68c5b5 Update DnsMasq.php
.localhost default domain
2017-09-18 14:23:53 +02:00
Taylor Otwell
fd595b5c71 run commands as sudo 2016-05-11 19:40:44 -05:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00