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

83 Commits

Author SHA1 Message Date
James Barnard
b16559a450 Merge branch 'master' into feature/links-with-parked 2019-10-04 07:30:35 +01:00
James Barnard
c89f64f3e6 Fix incorrect new test name 2019-10-02 13:58:47 +01:00
James Barnard
e5dceb2bc5 Check for tld on end of certificate file name to support multi segment tld's 2019-10-02 13:56:51 +01:00
James Barnard
9d4126856d Add 'parked' command to show all sites which have been parked using valet park 'path' 2019-10-02 13:31:06 +01:00
Chris Brown
9f80751a59 Testing 7.4 2019-09-08 10:07:01 -04:00
CodeLingoBot
21f479884b Fix case of contants based on best practices from PSR2
Signed-off-by: CodeLingoBot <bot@codelingo.io>
2019-04-01 10:51:16 +13:00
James Barnard
e5e7c74f1d use formula to restart php instead of version 2019-01-29 12:29:28 -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.
2019-01-09 14:28:43 -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
Till Krüss
adab98dd31 test test test 2018-12-07 16:21:43 -05:00
Till Krüss
9d66cb6bbd update brew test 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
Matt Stauffer
7eb1aec410 Merge pull request #449 from eberkund/master
Move ~/.valet to ~/.config/valet
2018-08-30 08:33:28 -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
e5f9a6163a Merge branch 'master' into tld-alias-for-domain-command 2018-06-22 14:03:56 -04:00
Colin DeCarlo
20afe84f36 Move the helper functions into the Valet namespace 2018-06-20 16:01:37 -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
ab8705425c Fix testing for Brew class 2018-04-07 16:48:35 -03:00
Taylor Otwell
567d38eafe update tests 2018-03-02 08:26:37 -06:00
Matt Stauffer
081fcf7199 Merge pull request #502 from laravel/add-trust-option
Add 'trust' command
2018-02-08 15:52:18 -05: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
Gabriel Caruso
3d9f34bff5 Use assertContains 2017-12-08 20:28:54 -02: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
9560909d34 Fix tests 2017-10-17 12:34:13 -04:00
Erik Berkun-Drevnig
34ccf5c3dc Fix broken test 2017-10-01 22:09:05 -04:00
Lasse Rafn
ce735cc66f Update NginxTest.php 2017-10-01 00:11:30 +02:00
Lasse Rafn
9a0c6929f0 Update DnsMasqTest.php 2017-10-01 00:11:11 +02:00
Lasse Rafn
20c21aa069 Update DnsMasqTest.php 2017-09-18 14:29:47 +02:00
Lasse Rafn
18a6a519f1 Update NginxTest.php
.localhost default domain test NginxTest
2017-09-18 14:27:17 +02:00
Lasse Rafn
d5b4ee3e8f Update DnsMasqTest.php
.localhost default domain test
2017-09-18 14:26:34 +02:00
Adam Wathan
84ade711b6 Refactor to collections 2017-06-22 07:34:51 -04:00
Antonio Carlos Ribeiro
6f8c14271a Show install, start, stop and restart log info 2017-02-21 12:04:45 -03:00
Adam Wathan
a249072310 Merge pull request #277 from drbyte/fix-413-request-entity-too-large-and-uploads
Fix large-upload problems by setting PHP limits and Nginx max size
2017-02-20 09:25:12 -05:00
Adam Wathan
e832fc73cc Fix test 2017-01-21 13:51:57 -05:00
Chris Brown
e208ca2340 Update minimum PHP requirement to 5.6
... because it's not actually compatible with 5.5 anymore - Ref: https://github.com/laravel/valet/issues/279
2016-12-27 15:58:16 -05:00
Chris Brown
bb59e1da2d Fix large-upload problems by setting PHP limits and Nginx max size
- Sets `client_max_body_size 128M` in `http` section of `nginx.conf`  so it covers all configs
- Adds `php-memory-limits.conf` to `php-fpm` conf folder, to set `memory_limit`, `upload_max_filesize`, `post_max_size` all to 128M

(Updates #253 by moving config location to cover all, since #253 didn't cover secure configs, etc)
2016-12-24 15:43:11 -05:00
Daniel Polito
5a25224e11 Upgrading PHP to 7.1 (#227) 2016-12-14 14:14:33 -06:00
Adam Wathan
fecfa84c4e Fix test to run under Linux CI 2016-12-08 08:45:12 -05:00
Adam Wathan
4e8d22e616 Use assertContains instead of assertTrue + strpos 2016-12-08 08:39:49 -05:00
Taylor Otwell
752f214ebb fix another test 2016-12-08 08:32:55 -05:00
Taylor Otwell
eb1a6b75f9 fix another test 2016-12-08 08:32:55 -05:00
Taylor Otwell
572227ae6c fix another test 2016-12-08 08:32:55 -05:00