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

34 Commits

Author SHA1 Message Date
Matt Stauffer
4c2c4a1238 Drop unnecessary doc blocks (#1339)
* Drop unnecessary doc blocks

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-01-11 09:14:39 -05:00
Matt Stauffer
20f48f6eab Replace some \n with PHP_EOL; move custom drivers into Custom namespace 2022-12-21 19:54:13 -05:00
Matt Stauffer
75d43a42ea Use constructor promotion 2022-12-20 21:51:15 -05:00
Matt Stauffer
a6840040be Add type hints and return types to Nginx 2022-12-19 19:16:34 -05:00
Jerry Price
021a4d1a5c use getStub to allow custom stub files 2022-04-13 10:50:41 -04:00
a52355ec49 Restore original directory permissions
As discussed in #1220, cleaning up after stopping Homebrew services that
run as root is probably the best solution for now.

What's changed:

- Stopping any Homebrew service now restores the appropriate permissions
  for the Homebrew directories
- Stopping nginx now also happens via $this->brew
  (to avoid code duplication)

The tests were updated to reflect this change.
2022-03-29 19:59:33 +02:00
StyleCI Bot
9b8c41e3d3 Apply fixes from StyleCI 2022-03-14 04:16:45 +00:00
Matt Stauffer
95aa03977c Add command to list isolated sites 2022-03-14 00:16:36 -04:00
NasirNobin
37b4af4113 Multiple/Parallel PHP Version Support for Valet 2022-02-06 13:56:35 +06:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00: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
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
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
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
35a5f95abf Convert comma to semicolon 2019-12-01 22:05:54 -05:00
Chris Brown
e046fff6f6 Display nginx config errors on start
While since #268 valet has been checking nginx configs for errors when starting/restarting, the captured errors are never displayed if there is a failure because it's being run using `quietly()`. 
This PR causes the errors to pass through to the console so we can more readily understand why nginx may not be starting or not serving properly.
2019-11-30 16:31:18 -05:00
Zachary King
9b83e9d015 Remove outdated option in brew install options
Resolves #725
2019-02-03 15:50:38 -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
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
Erik Berkun-Drevnig
0fd37b0fed Change paths from ~/.valet to ~/.config/valet 2017-09-28 14:44:14 -04:00
Marty Lamoureux
10ad812f38 Fixed typo: two much dots in ellipsis 2017-08-01 15:27:46 +02:00
Adam Wathan
ba0a3ba4e7 Merge pull request #263 from antonioribeiro/showStartStopInfo
Show start & stop process info in terminal
2017-03-23 10:45:26 -04:00
Adam Wathan
02f0299fcb Formatting 2017-03-11 10:05:33 -05:00
Antonio Carlos Ribeiro
2ed85e3e0a Check nginx.conf for errors before restarting nginx 2017-02-22 11:43:37 -03:00
Antonio Carlos Ribeiro
6f8c14271a Show install, start, stop and restart log info 2017-02-21 12:04:45 -03:00
Adam Wathan
f98db814c6 Merge branch 'master' into master 2017-02-20 09:18:39 -05:00
Adam Wathan
3027a0dbba Explicitly stop and start brew services instead of restart
This solves a mysterious issue that may or may not be specific to my
machine and it makes me very sad.
2017-01-21 12:00:05 -05:00
Pierre-Luc Brunet
94112bf660 Corrected left over "nginx" string left for stop command 2017-01-12 13:54:09 -05:00
Pierre-Luc Brunet
fa0456ea8f Uses the correct service name if nginx-full is installed instead of nginx 2017-01-04 14:45:44 -05:00
Pierre-Luc Brunet
976561a2bf Fix for issue #250 - brew package nginx-full not properly recognized as a valid nginx installation 2017-01-04 14:27:18 -05:00
Adam Wathan
6727e43288 Use UUID for static asset path instead of "static" 2016-12-12 15:46:09 -05:00
Taylor Otwell
fba8eb7602 fix nginx support 2016-12-08 08:32:55 -05:00