Matt Stauffer
ccd35e5231
Drop exits, fix 404 path
2022-12-22 13:26:47 -05:00
Matt Stauffer
4c67413e7a
Allow null response from frontControllerPath
2022-12-22 13:26:02 -05:00
Matt Stauffer
65b629db7f
Write tests for Server.php
2022-12-21 17:45:34 -05:00
StyleCI Bot
a73be25a76
Apply fixes from StyleCI
2022-12-18 21:08:41 +00:00
Matt Stauffer
efa7937038
Update drivers location and loading
...
- Extract much of server.php into a `Server` class
- Move all but the Laravel and Basic drivers into a subfolder
- Load all but the Laravel and Basic drivers via glob
- Add `beforeLoading` hook to simplify the `frontControllerPath` method for some drivers
2022-12-18 15:08:17 -06:00
Matt Stauffer
29b94a48a6
Move server helpers to their own file; add type hints
2022-12-15 21:34:48 -06:00
Matt Stauffer
05150d50ad
Drop references to defunct xip.io
2022-12-03 16:23:38 -05:00
Matt Stauffer
1ed1418369
Merge
2022-12-02 22:35:24 -05:00
Matt Stauffer
4276c30d26
Drop duplicated code
2022-12-02 22:35:04 -05:00
StyleCI Bot
1ac4843825
Apply fixes from StyleCI
2022-12-03 03:32:26 +00:00
Matt Stauffer
e247533a09
Handle old custom Valet drivers
2022-12-02 22:32:13 -05:00
Matt Stauffer
711e3dd2ba
Move all drivers to PSR autoload, and write tests
2022-12-02 21:15:15 -05:00
Taylor Otwell
101abeae0e
Apply fixes from StyleCI
2021-12-06 10:40:37 +00:00
Jakub Tobiasz
dbf8f0b89e
Move fixing the SCRIPT_FILENAME from server.php to the SymfonyValetDriver.php
2021-07-04 11:22:01 +02:00
Jakub Tobiasz
f09e5a0c00
Set the $_SERVER['SCRIPT_FILENAME'] to the front controller path
2021-07-02 16:33:43 +02:00
Stidges
1b3c025bc9
Remove .DS_Store check
...
This check is no longer necessary as we do an `is_dir` check first.
2021-06-14 21:44:53 +02:00
Stidges
6fa23d9f48
Flatten structure
2021-06-14 21:43:07 +02:00
Chris Brown
2eb369b455
Avoid open file handles
...
And added comments for future maintenance
2021-06-14 14:57:06 -04:00
Stidges
43da6f5065
Fix subdomain using root domain link
2021-06-10 19:48:56 +02:00
Lukas Heller
18d2adc1dd
fix typos and bade argument order
2021-05-29 12:02:19 +02:00
Lukas Heller
3345b849dd
Move foreach into separated function
2021-05-28 17:10:52 +02:00
Lukas Heller
c2f21a421e
Fix subdomains
2021-02-23 13:58:24 +01:00
Lukas Heller
f46a25fe04
revert breaking change
2021-02-23 13:42:43 +01:00
Mark
f994e01629
Update server.php
2020-12-30 23:52:01 +01:00
Mark
2c6ad70cc1
Site path found, break from loops
2020-12-30 14:24:58 +01:00
Sandro Gehri
e1aeb0b2ce
detect preferred site with introducing a new variable
2020-11-23 23:38:40 +01:00
Sandro Gehri
63dce63a29
prefer site name over domain name when detecting the site path
2020-11-23 21:39:29 +01:00
Matt Stauffer
f4bf0ebd9f
Merge pull request #952 from drbyte/case-sensitive
...
Allow serving mixed case folders on case sensitive file systems
2020-11-18 08:29:39 -05:00
Irfaq Syed
a98474f255
Revise method signature
2020-05-26 22:31:20 +05:30
Irfaq Syed
0256a4e685
Make tunnel services configurable
...
Improvement and support for any services to match.
2020-05-26 22:28:28 +05:30
Chris Brown
22443d1e71
Allow serving mixed case folders on case sensitive file systems
...
Fixes #622
2020-05-22 12:41:00 -04: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
Jamie Burchell
e2f48b0385
Fix incorrectly decoding plus symbol to space in paths
...
Fixes https://github.com/laravel/valet/issues/829
2019-10-09 22:27:13 +01:00
Chris Brown
120385b81d
Fire the .valet-env environment var detection earlier
...
To support smarter detection of static-file detection and allow Valet to mutate the URI for externally-hosted assets (save bandwidth and local storage etc), detecting any custom-inserted environment variables needs to happen slightly sooner in the execution cycle.
Discovered this issue when troubleshooting #729 and #247 . While they have other workarounds, this PR simplifies things, and potentially makes custom drivers slightly easier too ... when the use-case applies.
2019-09-07 17:27:01 -04:00
Martin Peverelli
8971bf8d6a
#473 Add feature to load server environment variables from special file
2019-01-02 17:27:02 -05:00
Sergio Bruder
2c190c67f8
fixes :port accesses
2018-09-14 04:17:15 -03: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
e5f9a6163a
Merge branch 'master' into tld-alias-for-domain-command
2018-06-22 14:03:56 -04:00
Adam Wathan
4c243d7d71
Merge pull request #439 from furey/feature/fallback-site-path
...
Fallback Site Path
2018-01-29 14:15:49 -05:00
James Furey
5f2c2fb36b
Kept logic around checking if a "default" site path is set and serving that if needed, but removed the actual CLI commands to set it (recommending people add/change their "default" path in their ~/.valet/config.json file manually).
2018-01-29 12:09:09 +11:00
Chris Brown
2c56a080e1
Fix xip.io / nip.io instructions (don't need to create a link to use it)
2017-10-17 21:55:12 -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
Adam Wathan
fab898ef9b
Merge pull request #372 from Gounlaf/feature/wildcarddns
...
Support another "wildcard dns provider": nip.io
2017-10-17 12:12:29 -04:00
Adam Wathan
1e7b020fd8
Don't bother with strict check #yolo
2017-10-17 12:12:12 -04:00
Adam Wathan
f757e8515b
Use modern array syntax
2017-10-17 12:11:46 -04:00
Erik Berkun-Drevnig
0fd37b0fed
Change paths from ~/.valet to ~/.config/valet
2017-09-28 14:44:14 -04:00
James Furey
8331f05d8c
Added "fallback" and "unfallback" commands to cli (if valid "fallback" path set, Valet's server script uses it for uncaught urls).
2017-09-21 21:06:18 +10:00
Vic D'Elfant
745005dcae
Simplified HTTP_HOST rewriting
2017-06-09 09:46:53 -04:00
Vic D'Elfant
dbcbf1edc7
Improved HTTP_HOST rewriting
2017-06-09 09:46:53 -04:00
Levis Florian
360bdabd8e
Support another "wildcard dns provider": nip.io
...
* Rename method to more generic name
* Support nip.io provider
2017-05-06 22:41:56 +02:00