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

1127 Commits

Author SHA1 Message Date
Matt Stauffer
a7f6646647 Merge pull request #887 from drbyte/global-valet-env
Allow for global environment variables to be configured.
2020-01-02 14:15:57 -05:00
Chris Brown
95264a6e0d Modernize PHP unit tests
Replaces and closes #564
2019-12-27 15:09:04 -05:00
Chris Brown
bb42b29c3a Allow for global environment variables to be configured.
This leverages the existing `.valet-env.php` file capability, but just adds the Valet Home directory as a first-lookup location.

So, now Valet will check for `.valet-env.php` in:
- `~/.config/valet/`
- then the current project folder

As discussed at https://github.com/laravel/valet/issues/789#issuecomment-565112046

Fixes #789
2019-12-27 12:13:38 -05:00
Chris Brown
b5c8257b86 Comment out memory limits so other configs take precedence 2019-12-23 17:34:54 -05:00
Matt Stauffer
edbc4fc0d3 Bump version v2.7.1 2019-12-23 10:09:19 -05:00
Matt Stauffer
7f602f70dc Merge pull request #881 from comes/master
Enable multiple ngrok arguments from command line
2019-12-23 10:08:26 -05:00
comes
2408a1be05 Merge pull request #1 from comes/comes-patch-1
Enable multiple ngrok arguments from command line
2019-12-21 21:02:34 +01:00
comes
979826887c Update valet 2019-12-21 21:00:52 +01:00
Matt Stauffer
9b1c58591d Bump version v2.7.0 2019-12-10 23:34:16 -05:00
Matt Stauffer
7ed362f82a Merge pull request #870 from drbyte/share-domain
Allow valet share to support multiple domains from same app
2019-12-10 23:32:08 -05:00
Chris Brown
99f0bd19c5 Apply suggestions from code review
Co-Authored-By: Matt Stauffer <mattstauffer@users.noreply.github.com>
2019-12-10 23:17:49 -05:00
Matt Stauffer
a05d26f8a4 Bump version v2.6.1 2019-12-10 23:13:48 -05:00
Matt Stauffer
b5e41a2fe6 Merge pull request #871 from drbyte/ngrok-2335
Update ngrok binary to 2.3.35
2019-12-10 23:13:06 -05:00
Matt Stauffer
f89170a7c2 Merge pull request #872 from drbyte/share-multiple-processes
Part 2: Fix auto-detection amongst multiple ngrok processes
2019-12-10 23:12:42 -05:00
Ahmed Ashraf
d4d8fc3d4a Allow start/restart/stop with a specific service 2019-12-09 10:46:51 +01:00
Chris Brown
c8435c5187 Part 2: Fix auto-detection amongst multiple ngrok processes
Thanks to the generosity of Alan at Ngrok, I've been able to do some additional testing with temporary added features.
Turns out #864 was incomplete. This PR now also loops through the default endpoints in order to find a process matching the passed domain.

Ref: #864
Ref: #145
2019-12-06 23:33:20 -05:00
Chris Brown
998e4c32df Allow valet share to support multiple domains from same app
This PR allows passing a specific domain name to `valet share` in order to have the app be served for that domain.
Now how it works is this:
- (NEW) if a domain name is passed, it checks whether it matches a link (which would be required for multiple domains served by same app project), and uses that
- if a domain name is NOT passed, it looks up any links for current directory, and uses the first found link
- else falls back to current project foldername

It also still allows passing through custom ngrok parameters if desired (ref: #112), as either the 2nd parameter (no domain name passed) or (NEW) 3rd parameter

Fixes #537
2019-12-06 20:35:35 -05:00
Chris Brown
eb040f4e20 Update ngrok binary to 2.3.35
The binary in this distro was previously version 2.3.34
2019-12-06 18:52:40 -05:00
Matt Stauffer
3b302b7593 Bump version. v2.6.0 2019-12-06 09:43:08 -05:00
Matt Stauffer
12e5c70914 Merge pull request #866 from drbyte/valet-uninstall
Allow Valet to uninstall itself
2019-12-06 09:41:36 -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
f08d3a04ac Merge pull request #857 from drbyte/patch-6
Update .travis.yml
2019-12-05 21:18:19 -05:00
Chris Brown
5831a933b8 Update .travis.yml
While `7.4snapshot` is still functional, it's no longer needed.
2019-12-05 16:23:14 -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
Matt Stauffer
fea8208eb0 Merge pull request #858 from drbyte/phpfpm-simplify
Move PHP-FPM pool config to separate valet-specific file
2019-12-05 15:14:23 -05:00
Matt Stauffer
5042b9affe Merge pull request #864 from drbyte/ngrok-multiple
Fix auto-detection amongst multiple ngrok processes
2019-12-05 15:13:43 -05:00
Chris Brown
139a916013 Move PHP-FPM config to separate valet-specific file
This allows the valet configuration to stand separately from the default PHP config.
This benefits troubleshooting, makes customization of FPM workers and other settings easer
and allows for easier uninstallation.

Also renames any previously-existing `www.conf` pool config so it doesn't conflict with Valet nor run unnecessary additional processes.
2019-12-05 15:01:11 -05:00
Matt Stauffer
52b3b47db8 Merge pull request #863 from cdavid138/master
Cater for filepaths with spaces
2019-12-03 22:43:57 -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
David Connolly
5cf4aea612 Cater for filepaths with spaces
Fixes issue where certificates fail to be generated due to a space in the filepath
2019-12-03 22:47:12 +00: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
Matt Stauffer
3d877ef803 Merge pull request #855 from drbyte/patch-5
Set robots nofollow for all valet share traffic
2019-12-01 22:06:57 -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
35a5f95abf Convert comma to semicolon 2019-12-01 22:05:54 -05:00
Matt Stauffer
f0a8fb9bb6 Merge pull request #852 from drbyte/patch-4
Display nginx config errors on start
2019-12-01 22:05:21 -05:00
Matt Stauffer
9372003cd6 Merge pull request #850 from drbyte/patch-2
Drop unnecessary symfony/process 2.x support
2019-12-01 22:04:59 -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
Matt Stauffer
93d1632b37 Merge pull request #851 from drbyte/patch-3
Add detailed valet uninstall instructions
2019-12-01 13:08:18 -05:00
Matt Stauffer
8eea03f6a2 Merge pull request #835 from jrbarnard/bugfix/parked-merge-overwrite
Do not show sites in parked if they would not be served
2019-12-01 12:57:12 -05:00
Matt Stauffer
30d168b2b8 Merge pull request #859 from drbyte/patch-7
Fix misnamed test
2019-12-01 08:41:09 -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
949e5d58e3 Update NginxTest.php
Fix misnamed test
2019-12-01 01:27:37 -05:00
Chris Brown
36de050d32 Set robots nofollow for all valet share traffic
Replaces and closes #575 ... for reasons described there.
2019-11-30 16:55:48 -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
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
Chris Brown
b8cd17ed98 Drop unnecessary symfony/process 2.x support
Since we require PHP > 5.6 there's no need to support symfony/process 2.x 

However, symfony/process 4.x requires minimum PHP 7.1 so have to retain 3.x for now if we wish to support PHP 7.0 or older without complications.
2019-11-30 16:10:22 -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