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

111 Commits

Author SHA1 Message Date
Roger Saner
724fbf7a24 fix: Drupal JSON:API support 2022-03-23 18:00:38 +02:00
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00:00
unlocdavid
33733b0456 Allow execution of custom PHP files in Bedrock projects
All request to PHP files are directed trough index.php which results in a 404 when you try to access a php file directly
2021-09-29 12:25:19 +02:00
Jakub Tobiasz
dbf8f0b89e Move fixing the SCRIPT_FILENAME from server.php to the SymfonyValetDriver.php 2021-07-04 11:22:01 +02:00
Matt Stauffer
6d1e9c3a06 Merge pull request #740 from pedroborges/master
Add support to setup Kirby above webroot
2020-06-12 23:24:00 -04: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
Matt Stauffer
cdefc2e3c0 Merge pull request #738 from marflow/master
Update StatamicValetDriver.php with locale 'zh'
2019-09-09 08:30:15 -04:00
Matt Stauffer
f22cb36c2b Merge pull request #705 from samgranger/patch-1
Add JSON:API support for Drupal
2019-05-10 08:54:15 -04:00
Matt Stauffer
6c8d0fcf6d Merge pull request #591 from morrislaptop/deep-custom-driver-search
Recursively search for custom valet drivers
2019-04-11 13:52:44 -04:00
Pedro Borges
d208c83a6a Add support to setup Kirby above webroot 2019-03-04 13:33:51 -03:00
marflow
4235103ac1 Update StatamicValetDriver.php 2019-03-01 20:42:33 +01:00
Sam Granger
c2668be5de Add JSON:API support for Drupal 2019-01-17 11:33:53 +01:00
Chris Brown
67546f1fc3 Updated loading of server environment variables
- added `putenv()` for Laravel compatibility
- added `$_ENV` for generic compatibility
- added wildcard processing, so site array named `*` gets processed always (if present), and then site-specific entries are added and will override the wildcard.

Sample `.valet-env.php`:
```php
<?php

return [
    '*' => [
        'USER' => 'vagrant',
    ],
    'demo' => [
        'MY_CUSTOM_VAR' => 'special_value',
        'USER' => 'travis',
    ],
];
```
(Note: order of entries in the array is irrelevant, as the parser reads `*` first, followed by site-specific entries.)
2019-01-02 17:27:02 -05:00
Martin Peverelli
8971bf8d6a #473 Add feature to load server environment variables from special file 2019-01-02 17:27:02 -05:00
chejaziuhin
fb63a3c855 Update BasicValetDriver.php 2018-12-17 11:18:12 -05:00
chejaziuhin
c9685e376e Static file serving for subfolders
This allows static file serving of 'index.php' and 'index.html' files from subfolders when you have a root 'public' folder.
2018-12-17 11:18:12 -05:00
Leo Feyer
72c34749b0 Support the app_dev.php front controller 2018-11-05 18:03:20 +01:00
Matt Stauffer
0b233002ce Merge pull request #653 from opdavies/drupal-subdirs
Failing functional tests with Drupal in a sub-directory
2018-10-25 15:54:26 -04:00
Jason Varga
ecf239b9dc Check for GET requests 2018-10-17 16:30:45 -04:00
Oliver Davies
7ceb524bf7 Revert "Use a Collection"
This reverts commit 7315553c8c.
2018-10-14 18:54:08 +01:00
Oliver Davies
7315553c8c Use a Collection 2018-10-14 17:14:51 +01:00
Oliver Davies
b0f0f063c4 Allow for serving Drupal from within a sub-directory 2018-10-14 16:44:30 +01:00
Matt Stauffer
a68e83297e Merge pull request #456 from StefanPrintezis/d8_autocomplete
Drupal 8 autocomplete
2018-08-15 10:08:36 -04:00
Matt Stauffer
d780045d93 Merge pull request #541 from martinleveille/craft-driver-optional-separate-index
Craft driver optional separate index.php
2018-08-15 09:50:01 -04:00
Marc Runkel
f48382bedf Support Kirby v3 as well
In version 3, there is no panel directory any longer, it's integrated in
kirby proper.
2018-07-20 12:05:14 +02:00
Craig Morris
6e42d78f11 Recursively search for custom valet drivers 2018-05-31 18:23:41 +01:00
Martin Leveille
49173c0c40 Check if index.php exists in the localized folder 2018-03-25 12:02:16 -04:00
Matt Stauffer
7e27852722 Merge pull request #516 from nystudio107/craft-driver-web-or-public
Craft driver web or public
2018-02-09 10:17:11 -05:00
Indra Gunawan
8d42411fa2 Add support to Symfony Flex directory structure (#475) 2018-02-08 14:46:17 -06:00
Andrew Welch
cc0e4922f6 Smarter frontControllerDirectory method
The previous method simply returned `web` if there was a file named `craft` in the $sitePath (which means we’re running Craft 3).

The problem is that many sites, especially upgraded ones, will be serving out of `public`. This is also in line with the default Forge/ServerPilot default dirs.

So we test to see if either `/web` or `/public` exist, and return them if so. Otherwise default to the current method.

Signed-off-by: Andrew Welch <andrew@nystudio107.com>
2018-02-01 13:12:03 -05:00
Adam Wathan
83eae5a01e Merge pull request #461 from simensen/modern-sculpin-support
Enable support for modern Sculpin projects.
2018-01-09 09:08:08 -05:00
Beau Simensen
fb276d6177 Compare similar types. 2018-01-08 20:55:31 -06:00
Beau Simensen
ec42860fee Also check if sculpin/sculpin is required by composer.json 2018-01-08 20:53:46 -06:00
Beau Simensen
c556f26f46 Support for Magento Commerce (Cloud) applications that rely on DOCUMENT_ROOT 2017-11-12 22:05:10 -06:00
Beau Simensen
8c5c2282cd Enable support for modern Sculpin projects. 2017-10-21 02:21:22 -07:00
Stefan
68fa164eb9 Drupal 8 autocomplete 2017-10-09 17:49:36 +02:00
Jason Varga
78d37c375c Add en to locales 2017-10-02 17:02:05 -04:00
Adam Wathan
4bd79ecdd2 Merge pull request #380 from PheRum/master
Added missing $_SERVER variables for Basic Driver
2017-09-30 15:04:06 -04:00
Adam Wathan
698c6532dc Merge pull request #426 from christian-thomas/patch-1
Set SERVER_NAME variable for WordPress (Bedrock) driver
2017-09-30 15:03:05 -04:00
Adam Wathan
7cedd61289 Merge pull request #401 from jasonvarga/master
Statamic caching and localization support
2017-09-19 16:58:02 -04:00
Martin Leveille
2227945543 Fix hard coded front controller directory for Craft 2017-09-17 09:20:48 -04:00
Christian Thomas
27b7ecebf5 Set SERVER_NAME variable for WordPress (Bedrock) driver
Fix for Wordpress (Bedrock) as in #138
2017-08-29 11:24:16 +01:00
Jason Varga
d12eb0e140 Only serve recognized locales if the file exists. 2017-08-24 14:44:20 -04:00
Adam Wathan
b8fb49ff51 Merge pull request #278 from fschwaiger/master
Add Typo3 and Neos drivers
2017-08-18 09:38:54 -04:00
Adam Wathan
ca4f78d5f8 Merge pull request #402 from gms8994/patch-1
Checks to see if file_exists *and* it's an actual file.
2017-08-09 08:49:02 -04:00
Jason Varga
db5f5d80e9 Handle localized sites within a public directory 2017-08-08 15:10:00 -04:00
Erik Weber
c8c1a52c3b Add $_SERVER['DOCUMENT_ROOT'] to CraftValetDriver 2017-08-07 09:52:50 +02:00
Glendon Solsberry
9f70e8163f Checks to see if file_exists *and* it's an actual file.
The current check short-circuits too early, allowing the existence of a folder at $uri
to trigger a false positive. This verifies that the file at $uri is actually a file before
returning.
2017-07-18 09:57:41 -04:00
Jason Varga
e91b844a8f Use isActualFile 2017-07-17 17:14:08 -04:00
Jason Varga
933922bfe7 Support Statamic 2.6 caching, and localized subdirectories. 2017-07-17 17:10:33 -04:00