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

802 Commits

Author SHA1 Message Date
Matt Stauffer
a6971e0788 Merge pull request #757 from furey/pull-548-refinements
#548 Refinements ("valet logs" Command)
v2.3.0
2019-04-17 09:12:52 -04:00
Matt Stauffer
1c19eb8f0a Version bump 2019-04-17 09:12:29 -04:00
James Furey
138df82aa2 Removed "php" and "mysql" log key/path values. 2019-04-13 12:32:57 +10:00
James Furey
12ca66ade1 Changed "logs" command name to "log". 2019-04-13 12:31:36 +10:00
Matt Stauffer
6f70c9a027 Merge pull request #767 from furey/feature/home-autoloader
HOME Autoloader
v2.2.5
2019-04-12 16:47:32 -04:00
James Furey
2e4b165a3b Added HOME Composer autoload path to head of Valet CLI file. 2019-04-12 13:55:24 +10:00
James Furey
cb1136e7a6 Resolutions to the following change requests:
- https://github.com/laravel/valet/pull/757#discussion_r274547618
- https://github.com/laravel/valet/pull/757#discussion_r274549378
- https://github.com/laravel/valet/pull/757#discussion_r274549637
- https://github.com/laravel/valet/pull/757#discussion_r274549735
- https://github.com/laravel/valet/pull/757#discussion_r274550184
- https://github.com/laravel/valet/pull/757#discussion_r274550266
- https://github.com/laravel/valet/pull/757#discussion_r274550513
- https://github.com/laravel/valet/pull/757#discussion_r274550683
- https://github.com/laravel/valet/pull/757#discussion_r274550831
- https://github.com/laravel/valet/pull/757#discussion_r274550915
- https://github.com/laravel/valet/pull/757#discussion_r274551027
2019-04-12 13:11:47 +10:00
Matt Stauffer
dc0e14a3ea Re-write Process version comment 2019-04-11 15:46:16 -04:00
Matt Stauffer
9705801971 Merge pull request #766 from Padrio/master
Fixed warning on newer symfony/process versions
2019-04-11 15:43:00 -04:00
Pascal Krason
6182e0c8b5 Fixed warning on newer symfony/process versions 2019-04-11 21:38:35 +02:00
Pascal Krason
18cddd336a Fixed warning on newer symfony/process versions 2019-04-11 20:20:23 +02:00
Matt Stauffer
911031fc82 Version bump 2019-04-11 13:54:00 -04: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
Matt Stauffer
b06c64cc9a Merge pull request #765 from drbyte/allow-74snapshot-failures
Allow TravisCI to fail on PHP7.4snapshot builds
2019-04-11 13:30:30 -04:00
Chris Brown
7304cebfa4 Allow TravisCI to fail on PHP7.4snapshot builds 2019-04-11 13:29:19 -04:00
Matt Stauffer
51c62c63f2 Version bump v2.2.4 2019-04-11 13:16:47 -04:00
Matt Stauffer
589bbd8c86 Merge pull request #764 from laravel/mes/revert-761
Revert new fromShellCommandLine call
2019-04-11 13:16:12 -04:00
Matt Stauffer
9570e12ec7 Revert new fromShellCommandLine call 2019-04-11 08:22:17 -04:00
James Furey
44ab8354c7 Empty commit to restart Travis CI build. 2019-04-11 11:48:23 +10:00
Matt Stauffer
dc7809907d Version bump v2.2.3 2019-04-09 13:50:11 -04:00
James Furey
b7633422b1 Added default logs array. Sorting merged default/config logs array. Added key/files table and guided info when no key is passed. Added warnings when accessing non-existent key/files. 2019-04-09 15:45:16 +10:00
Matt Stauffer
001bb1f13a Merge pull request #760 from ikari7789/refactor-create-certificate
Fix issue with CA serial params
2019-04-08 11:54:24 -04:00
Matt Stauffer
98b61f5006 Merge pull request #761 from Padrio/master
Fixes deprecated Process argument passed as string
2019-04-08 10:27:04 -04:00
Pascal Krason
737be28bf5 Fixes deprecated Process argument passed as string
Passing a command as string is deprecated since Symfony 4.2.
2019-04-08 16:19:39 +02:00
Andrew Miller
e336ebc12f Fix issue with CA serial params
Should always provide CAserial, but should only provide CAcreateserial if file does not exist. Should probably fix permissions issue mentioned in the comments when attempting to create certificate.
2019-04-08 17:30:40 +09:00
James Furey
7244468445 Added "logs" command (with optional "follow" and "lines" flags), defaulting to Valet's "/log/nginx-error.log" file if no "logs.[file]" configuration value is found in Valet's "config.json" file. 2019-04-04 14:45:11 +11:00
Matt Stauffer
1e3e37179b Merge pull request #755 from drbyte/travis74
TravisCI - change nightly(8.0) PHP to 7.4snapshot
v2.2.2
2019-04-03 16:16:28 -04:00
Matt Stauffer
f39e4fc2de Merge pull request #721 from timciep/patch-1
Fix SSL Certificate creation
2019-04-03 16:16:04 -04:00
Matt Stauffer
7a83a706f4 Merge pull request #747 from golubkovden/patch-2
Update valet
2019-04-03 16:11:41 -04:00
Chris Brown
5ef4d44fa1 TravisCI - change nightly(8.0) PHP to 7.4snapshot
The former approach of using `nightly` to grab the latest in-dev PHP version isn't working well now that the `nightly` build is an alias for 8.0 ... and 8.0 isn't resolving composer packages since most haven't tagged anything compatible with it yet.
So switching to `7.4snapshot` allows testing against the next announced PHP version set to release later this year.
2019-04-03 09:32:05 -04:00
Matt Stauffer
d7f8b17910 Merge pull request #751 from CodeLingoBot/rewrite-laravel-valet-psr2-lower-case-constant-values
Change PHP keywords to comply with PSR2
2019-03-31 22:38:44 -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
Denis Golubkov
bb8202f7a6 Update valet
Suppress error message if file not exists
2019-03-22 18:06:33 +03:00
Tim Cieplowski
f50b7dbe11 handle SSL .crt creation "Permission denied" failure 2019-03-20 11:35:31 -04: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
Tim Cieplowski
62edb056b4 fix ssl certificate creation 2019-01-30 11:09:23 -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