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

71 Commits

Author SHA1 Message Date
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
Taylor Otwell
aa8ea8ecb5 workin gon tests 2016-12-08 08:32:55 -05:00
Taylor Otwell
a35b668aee working on tests 2016-12-08 08:32:55 -05:00
Adam Wathan
2ac1711eef Listen on port instead of socket 2016-12-08 08:32:54 -05:00
Adam Wathan
0da0fb3b1b Grueing around 2016-12-08 08:32:54 -05:00
Adam Lavin
b2878a6d1a Update brew list to use runAsUser instead of directly sudoing 2016-11-23 21:52:56 +00:00
Adam Lavin
6aa1f4b7bf Run brew list as user
As brew no longer allows running itself as root, we need to run it at the current user. This resolves #221.
2016-11-23 16:29:27 +00:00
Adam Wathan
733747900e Revert to using port instead of socket to see if it helps stale page issue 2016-10-22 11:35:07 -04:00
Michael Gruschwitz
15accc5175 Update tests 2016-09-28 11:44:05 +02:00
Adam Wathan
028d2d5208 Fix conflicts 2016-09-24 10:35:22 -04:00
Adam Wathan
5e365f4bfb Add test coverage for setting FPM socket 2016-09-24 10:25:42 -04:00
Adam Wathan
8831cfe7ce Explicitly set PHP FPM port on install 2016-09-23 10:15:11 -04:00
Adam Wathan
403e75d580 Rewrite TLS Caddy files on install
Porting this from master branch for now, makes it a lot easier for
people to go from master to 1.1.* since the master branch has a
different Caddyfile structure.

Since Caddy 0.9.* still has the X-Accel-Redirect issue re:
Content-Type, we can't tag on master yet, so this will help people get
back to a tagged release without having to manually fix a bunch of
Caddyfiles.
2016-09-23 09:50:09 -04:00