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

34 Commits

Author SHA1 Message Date
Taylor Otwell
101abeae0e Apply fixes from StyleCI 2021-12-06 10:40:37 +00: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
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
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
Craig Morris
6e42d78f11 Recursively search for custom valet drivers 2018-05-31 18:23:41 +01:00
Florian Schwaiger
311051fc75 Merge branch 'master' into master 2017-05-23 17:13:13 +02:00
Michael Gruschwitz
f4c0c98542 Fix contao driver never gets loaded
The symfony valet driver should not override the contao valet driver.
2017-05-05 10:49:10 -04:00
Joe Constant
953d828afd Add Magento2 driver 2017-05-05 10:47:47 -04:00
Florian Schwaiger
489eb966ad add NeosValetDriver 2017-01-09 23:03:30 -05:00
Florian Schwaiger
dc291419e1 Merge remote-tracking branch 'upstream/master' 2016-12-24 17:07:17 -05:00
Taylor Otwell
42834e2247 use local valet driver as name 2016-12-14 14:57:46 -06:00
Taylor Otwell
26d39ae3ab Merge branch 'master' of https://github.com/jasonvarga/valet into jasonvarga-master 2016-12-14 14:57:00 -06:00
Adam Wathan
6727e43288 Use UUID for static asset path instead of "static" 2016-12-12 15:46:09 -05:00
Taylor Otwell
3c3e474d0f Merge branch 'master' into nginx 2016-12-08 16:25:31 -06:00
Korvin Szanto
5134ce20c6 Add a concrete5 driver that provides the environment (#158)
* Add a concrete5 driver that provides the environment

* Use better directory for detection and allow for accessing separate php files
2016-12-08 16:19:00 -06:00
Adam Wathan
be89d96078 Send empty Content-Type header to force nginx to determine on it's own 2016-12-08 08:32:22 -05:00
Jason Varga
637d78fd75 Support a SiteValetDriver in the site path 2016-11-15 19:47:03 -05:00
Adam Wathan
41a3d6c18a Explain this disgusting grue 2016-09-28 16:58:13 -04:00
Adam Wathan
22528cebaa Don't even set the INI setting because it doesn't work in 5.6, do this dumb hack instead. 2016-09-28 16:58:13 -04:00
Adam Wathan
3facbef790 Disable default_mimetype with ini_set instead of via config file 2016-09-28 16:58:13 -04:00
Adam Wathan
73a205aa81 Serve static files through Caddy instead of PHP 2016-09-28 16:58:13 -04:00
Adam Wathan
3aaacbd64e Revert to serving static files through PHP until Caddy bug resolved 2016-09-24 10:21:35 -04:00
Florian Schwaiger
7e550f9920 register typo3 driver 2016-09-22 15:35:17 -04:00
Adam Wathan
3409f2998b Working on serving static files through Caddy instead of PHP 2016-08-18 18:54:07 -04:00
Tristan Payne
58e3c07fe3 Drupal 7 & 8 Driver (#48)
* Add support for Drupal

* Implement more logic to handle Drupal 6, Drupal 7 and Drupal 8

* Additional fixes for Drupal 8 install. Removed note about Drupal 6 since it doesn't work properly beyond PHP 5.3.

* Rewrite front controller check for Drupal 8
2016-07-26 15:09:15 -04:00
Steve Waag
b0cd7cf373 Convert static file path extension to lowercase 2016-06-17 21:05:48 -07:00
Taylor Otwell
82e1d96be1 remove ide hint 2016-05-12 21:17:49 -05:00
Daniel Morris
fe6fb947f7 Consistency changes (#60)
* Correct the return type annotation in a serves method

* Type-hint the driver in the abstract ValetDriver

* Correct the return type-hint in the sample ValetDriver

* Remove the return afrom the restartLinkedPhp method

* Remove the return annotation from the Caddy constructor

* Remove the return annotation from the Valet configuration constructor

* Removed the return from the prependPath method of the Configuration class

* Removed the return from the appendAsUser method of the Filesystem class

* Removed the return annotation from the Site constructor

* Corrected the parameter annotation of the link method in the Site class

* Order use statements by length in PhpFpm

* Remove the return annotation from the Valet constructor
2016-05-12 21:17:32 -05:00
Taylor Otwell
f46d7cc232 Merge branch 'master' of https://github.com/CSWilson/valet into CSWilson-master 2016-05-12 16:11:50 -05:00
Evan Mattson
954de429b6 add Bedrock driver 2016-05-10 23:26:45 -04:00
Kennedy Tedesco
29dafe848c Move isActualFile() to ValetDriver 2016-05-10 14:43:38 -03:00
Christophor Wilson
f955d7a22f Update ValetDriver.php
Added the Joomla driver.
2016-05-10 09:53:58 -06:00
Taylor Otwell
97f7ae2342 organize better 2016-05-10 08:29:24 -05:00