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

767 Commits

Author SHA1 Message Date
Denis Golubkov
bb8202f7a6 Update valet
Suppress error message if file not exists
2019-03-22 18:06:33 +03:00
Matt Stauffer
fdca6cb530 Version bump of shame v2.2.1 2019-02-03 16:06:55 -05:00
Zachary King
9b83e9d015 Remove outdated option in brew install options
Resolves #725
v2.2.0
2019-02-03 15:50:38 -05:00
James Barnard
e5e7c74f1d use formula to restart php instead of version 2019-01-29 12:29:28 -05:00
James Barnard
290c22a1f7 added suggested 7.2 and fix doesn't typo 2019-01-28 20:26:13 -05:00
James Barnard
0bf3078220 update to unlink not the current version but the currently linked formula path (handles bug with latest version under php path) 2019-01-28 20:26:13 -05:00
James Barnard
ece3a1ff2f clean up to remove search, refactor to better handle versions using regex 2019-01-28 20:26:13 -05:00
James Barnard
6a5c06e934 add tests for use version and return the found version to output 2019-01-28 20:26:13 -05:00
James Barnard
6158e5129b add more tests for new methods and bits of clean up 2019-01-28 20:26:13 -05:00
James Barnard
25c4fab2b4 stop running php and search brew for php to verify can install it before trying the wrong formula, todos for tests 2019-01-28 20:26:13 -05:00
James Barnard
28748baa80 working on php version and tests 2019-01-28 20:26:13 -05:00
Chris Brown
83b1b2c467 Rework PHP version resolution
Last year's Homebrew's PHP packaging changes altered their version numbering strategy.
Now that their changes appear to have stabilized, Valet also needs some updates to match.

The `linkedPhp()` function was parsing the symlinked directory name for where the php binaries are stored, but that numbering strategy has morphed over time.

This PR changes the logic to accommodate the most common directory naming strategies I can find, including those of older installs.
I've included some examples of these names in code comments for future reference since finding a variety of them can be complicated.
v2.1.6
2019-01-09 14:28:43 -05:00
Chris Brown
7dd06db2b0 Change default PHP install pkg to 'php'
When no homebrew-installed PHP version is found, Valet attempts to install one.
The old default was `php71`. This PR changes it to `php`, which will install the latest Homebrew PHP version.
The problem with installing an older version is that Homebrew no longer symlinks it automatically. Rewriting Valet to do the symlinking is a little more involved since we should check for "which" version to link, vs other versions installed, etc.
Simply changing the default to the primary supported PHP version allows Valet to rely on Homebrew symlinking it properly.
2019-01-07 21:41:35 -05: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
Dries Vints
2568be3255 Update .editorconfig 2018-12-29 23:12:02 -05:00
Sahib J. Leo
001058414b #691 Surround with quotes all paths which might contain blank spaces. 2018-12-27 11:24:41 -05:00
Weizhe Sun
d75810239a Remove redundant return. 2018-12-21 21:21:09 -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
Matt Stauffer
d6ea8cdb2d Version bump 2018-12-07 16:36:34 -05:00
Matt Stauffer
dd258c39f5 Version bump v2.1.5 2018-12-07 16:34:40 -05:00
Till Krüss
adab98dd31 test test test v2.1.4 2018-12-07 16:21:43 -05:00
Till Krüss
9d66cb6bbd update brew test 2018-12-07 16:21:43 -05:00
Till Krüss
b3ce1c4a15 Support PHP 7.3 2018-12-07 16:21:43 -05:00
Sahib J. Leo
b05c773e1d Addressing issue #678 2018-12-05 09:00:59 -05:00
Dries Vints
8f03204b61 Disable xdebug
This should speedup builds a bit and makes it more consistent with other Laravel libraries.
2018-11-26 12:31:59 -05:00
Chris Brown
027812c25f Pre-create the parent .config dir if needed
On a fresh OSX install, the ~/.config/ dir doesn't always exist. This checks and creates it if needed.
2018-11-13 09:34:21 -05:00
Andrey Bolonin
25d6e47eb1 Update .travis.yml 2018-11-13 08:42:20 -05:00
Matt Stauffer
af007f9958 Bump version: v2.1.3 2018-11-13 08:18:46 -05:00
Chris Brown
b803a37855 Change valet share to use port 60
Since the current TCP port 88 clashes with Kerberos, changing it to port 60 which IANA shows as unassigned, and other databases show as not being used in general practice.

Several alternates were researched, but show (although limited use, nevertheless possible) clashes with other systems, including ports 47, 81-90, 8080-8090, and 100. Various sources were referenced, and the overall conclusion is that 60 seems to be the safest and least likely to conflict.

Tested against a few limited firewall configs without issue.
Tested with both fresh new valet installs and an older install upgraded from 2.0.x.
2018-11-12 16:00:05 -05:00
Chris Brown
4ca3e0acb4 Sanity check for tld config
In some cases of mixed older versions and configs, the 'tld' config entry was not set.
This now updates (sets) the `tld` config entry if it is not set.
2018-11-11 19:33:03 -05:00
Matt Stauffer
9c7a64efd6 Bump version 2018-11-09 13:36:04 -05:00
Matt Stauffer
5e6658a20f Merge pull request #637 from drbyte/update-to-ngrok-2-2-8
Update ngrok binary from 2.1.18 to 2.2.8
v2.1.2
2018-11-07 10:10:12 -05:00
Matt Stauffer
312714dcb7 Merge pull request #663 from leofeyer/patch-1
[Contao] Support the app_dev.php front controller
2018-11-07 09:54:31 -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
Matt Stauffer
a817c7ad7c Merge pull request #656 from jasonvarga/patch-2
Only serve statically cached files on GET requests for Statamic
2018-10-23 11:04:25 -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
fcaa484ee3 Merge pull request #646 from browner12/patch-1
add missing period
2018-10-03 15:49:16 -04:00
Andrew
3d76791ed2 add missing period 2018-10-02 09:51:22 -05:00
Chris Brown
64581237fb Update ngrok binary from 2.1.18 to 2.2.8 2018-09-19 23:09:43 -04:00
Matt Stauffer
10c5239ddc Merge pull request #630 from sdbruder/fix-ngrok-issue
fix for share of secured sites
2018-09-19 22:24:35 -04:00
Matt Stauffer
95cd656fad Bump version v2.1.1 2018-09-19 22:06:03 -04:00
Matt Stauffer
5323743a62 Merge pull request #636 from drbyte/635-automove-old-config
Automatically move config after upgrade to v2.1
2018-09-19 22:00:33 -04:00
Chris Brown
b23650c9d7 Automatically move config for upgrade
Fixes #635 by detecting if the config directory is in the old location and moving it immediately when running any Valet command.
2018-09-19 19:04:12 -04:00
Matt Stauffer
b76bb0db68 Update version number to 2.1.0 v2.1.0 2018-09-19 12:35:36 -04:00