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

214 Commits

Author SHA1 Message Date
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.
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
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
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
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
Chris Brown
2f17e688ce Add DomainException declaration to #353 2018-09-18 23:27:46 -04:00
Matt Stauffer
0323607850 Merge pull request #353 from antonioribeiro/improveUnlink
Unlink renamed links
2018-09-18 22:24:09 -04:00
Chris Brown
c815e349f4 Fix errors from relocation of config dir 2018-09-13 20:57:09 -04: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
f4281b4eaa Fix tld php errors from #241
Fixes #618 - PHP errors running TLD command if didn't run `valet install` as part of upgrading from version 2.0.12
2018-08-24 15:05:39 -04:00
Matt Stauffer
23e2eee8a1 Merge pull request #241 from drbyte/tld-alias-for-domain-command
Rename `valet domain` command to `valet tld`
2018-08-23 11:52:52 -04:00
Chris Brown
a7d8f32073 Fix merge error
The domain-name determination using strrpos wasn't very efficient. Stripping the `.crt` from the end of the filename is easier to parse.
Now all it returns is the first part of the string up until the final `.`, treating the remainder as whatever tld was used for the domain, regardless of what tld valet is configured for.
2018-08-22 13:40:32 -04:00
Chris Brown
e5f9a6163a Merge branch 'master' into tld-alias-for-domain-command 2018-06-22 14:03:56 -04:00
Rob Stanley
f86f0968f3 Update the tap list, current taps deprecated.
> valet install
Stopping nginx...
Installing nginx configuration...
Installing nginx directory...
Installing php71...
Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.
Error: homebrew/versions was deprecated. This tap is now empty as all its formulae were migrated.
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
2018-05-22 14:12:54 +01:00
Adam Wathan
7ed0280374 Merge pull request #515 from WARP-LAB/master
adding CA to the created certificates
2018-05-07 23:45:55 +09:30
Jesus Urrutia
0da2c6fc0e Fix return string with php-fpm config path for linked PHP 2018-04-09 16:17:57 -03:00
Adam Wathan
64cc7448b1 Refactor loop to map 2018-04-09 14:33:40 -04:00
Jesus Urrutia
b52ae454a2 Maintain compatibility with the old name of the PHP version 2018-04-09 11:20:19 -03:00
Jesus Urrutia
b71b580545 Fix supportedPhpVersions method use constant 2018-04-07 16:27:16 -03:00
Jesus Urrutia
1dd83f133b Unify php versions list. Fix deprecated homebrew/php 2018-04-06 18:52:46 -03:00
Rob van Hoose
2afc61cc6c Fix (really) changes where brew php paths now include @ and semver-style versions in paths 2018-04-04 11:41:59 -04:00
Taylor Otwell
5d74ad18cb Revert "fix for new php versions/paths from php installed via brew" (#551)
* Revert "wip"

This reverts commit 15c961e41e.

* Revert "fix changes where brew php paths now include @ and semver-style versions in paths (#545)"

This reverts commit 7f61475feb.
2018-04-03 11:38:18 -07:00
James Doyle
7f61475feb fix changes where brew php paths now include @ and semver-style versions in paths (#545) 2018-04-03 07:06:10 -07:00
Ed Preston
be8fb05110 Update Brew.php - Homebrew\Core Package Names (#549)
Update supportedPhpVersions to include the new names used by homebrew now that the php packages have migrated to 'core'.   php71 has become php@7.1 etc

The new names are put at the front of the list to optimise the loops that use these collections.

Anyone who installs or updates 'homebrew php' from will start using the new packages names which breaks parts of valet.
2018-04-03 07:05:22 -07:00
Taylor Otwell
884753b75e fixes 2018-03-02 08:25:57 -06:00
Adam Wathan
740d716cdd Accommodate formula name change in latest homebrew 2018-03-02 07:30:26 -05:00
Matt Stauffer
081fcf7199 Merge pull request #502 from laravel/add-trust-option
Add 'trust' command
2018-02-08 15:52:18 -05:00
kroko / Reinis Adovičs
79b539840d in unsecure() always try to clean keychain 2018-02-08 20:38:19 +02:00
kroko / Reinis Adovičs
3af02dfba8 unsecure also by trying to match cert email 2018-02-08 20:26:53 +02:00
kroko / Reinis Adovičs
08d681f27b get rid of affix 2018-02-08 00:10:42 +02:00
kroko / Reinis Adovičs
b32080b678 trying to delete nonexistent settings will fail 2018-02-08 00:04:22 +02:00
kroko / Reinis Adovičs
3f11288920 store CA in separate directory 2018-02-07 23:16:51 +02:00
kroko / Reinis Adovičs
a2d446b871 change spaces for CA srl param 2018-02-07 22:10:51 +02:00
kroko / Reinis Adovičs
9b543f4aa0 explicit CA serial for macOS 10.13.3 2018-02-07 22:03:36 +02:00
kroko
192456d369 change security delete-certificate command order 2018-01-31 09:36:10 +02:00
kroko / Reinis Adovičs
4500e6e0d2 Keep random affix only for CN 2018-01-31 09:24:17 +02:00
kroko / Reinis Adovičs
694bd5d571 empty C, ST, L fields in root certificate 2018-01-31 05:18:15 +02:00
kroko / Reinis Adovičs
91b0b69dd7 when unsecuring try deleting also old wildcard 2018-01-31 04:45:06 +02:00
kroko
312d9e33cb adding CA to the created certificates 2018-01-30 14:13:49 +02:00
Matt Stauffer
a7777690ee Add a test that https is parsed correctly for non .dev domains in valet links 2018-01-05 13:16:39 -05:00
Matt Stauffer
6587fb53a5 Add 'trust' command 2018-01-04 16:36:16 -05:00
jasper-ter-veen
117a937638 Update Site.php 2017-12-20 16:54:35 +01:00