Skip to content

Commit

Permalink
Merge pull request #1352 from beornlake/laravel55
Browse files Browse the repository at this point in the history
Laravel 5.5
  • Loading branch information
antonmedv authored Sep 1, 2017
2 parents 818dbdb + 7326d19 commit ce04673
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## beornlake PR
- Updated Laravel recipe to not run 'artisan:optimize' on Laravel >= 5.5, as that command is now deprecated ([see upgrade notes](https://laravel.com/docs/5.5/upgrade)).
- Laravel version check defaults to 5.5 if not found.

## master
[v6.0.2...master](https://github.com/deployphp/deployer/compare/v6.0.2...master)

Expand All @@ -8,7 +12,7 @@
## v6.0.2
[v6.0.1...v6.0.2](https://github.com/deployphp/deployer/compare/v6.0.1...v6.0.2)

### Fixed
### Fixed
- Fixed bug with curl ssh check in _Httpie_ util

## v6.0.1
Expand Down Expand Up @@ -42,7 +46,7 @@
- Improved environment variables management
- Fixed `runLocally` to not cd into remote dir

### Removed
### Removed
- Removed `terminate_message` option
- Removed `Result` class

Expand Down Expand Up @@ -70,7 +74,7 @@
## v5.1.1
[v5.1.0...v5.1.1](https://github.com/deployphp/deployer/compare/v5.1.0...v5.1.1)

### Fixed
### Fixed
- Fixed bug with `self-update` warnings [#1226]


Expand Down
9 changes: 7 additions & 2 deletions recipe/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

preg_match_all('/(\d+\.?)+/', $result, $matches);

$version = $matches[0][0] ?? 5.4;
$version = $matches[0][0] ?? 5.5;

return $version;
});
Expand Down Expand Up @@ -105,7 +105,12 @@

desc('Execute artisan optimize');
task('artisan:optimize', function () {
run('{{bin/php}} {{release_path}}/artisan optimize');
$deprecatedVersion = 5.5;
$currentVersion = get('laravel_version');

if (version_compare($currentVersion, $deprecatedVersion, '<')) {
run('{{bin/php}} {{release_path}}/artisan optimize');
}
});

desc('Execute artisan queue:restart');
Expand Down

0 comments on commit ce04673

Please sign in to comment.