Skip to content
This repository was archived by the owner on Apr 26, 2020. It is now read-only.

cachetool recipe: add cachetool_bin setting to download old version (…#184

Merged
antonmedv merged 3 commits into
deployphp:masterfrom
hyde1:master
May 30, 2018
Merged

cachetool recipe: add cachetool_bin setting to download old version (…#184
antonmedv merged 3 commits into
deployphp:masterfrom
hyde1:master

Conversation

@hyde1
Copy link
Copy Markdown
Contributor

@hyde1 hyde1 commented May 23, 2018

…4.0.0 is only compatible with php >=7.1)

Q A
Bug fix? Yes
New feature? No
BC breaks? No
Deprecations? No
Fixed tickets #183

Do not forget to add notes about your changes to CHANGELOG.md

@antonmedv
Copy link
Copy Markdown
Member

Why just don't update phar?

@hyde1
Copy link
Copy Markdown
Contributor Author

hyde1 commented May 23, 2018

What do you mean by "just update phar"?
You mean using cachetool-3.2.1.phar whether or not the host is running php >=7.1?

@antonmedv
Copy link
Copy Markdown
Member

You proper phar tool :)

Comment thread recipe/cachetool.php Outdated

set('cachetool', '');
set('cachetool_bin', function(){
return run("/usr/bin/php -r \"echo version_compare(phpversion(), '7.1') == -1 ? 'cachetool-3.2.1.phar' : 'cachetool.phar';\"");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is cachetool-3.2.1.phar should come?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use {{bin/php}} instead of /usr/bin/php.

@hyde1
Copy link
Copy Markdown
Contributor Author

hyde1 commented May 23, 2018 via email

Comment thread recipe/cachetool.php Outdated

set('cachetool', '');
set('cachetool_bin', function(){
return run("/usr/bin/php -r \"echo version_compare(phpversion(), '7.1') == -1 ? 'cachetool-3.2.1.phar' : 'cachetool.phar';\"");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's better to use {{bin/php}} instead of /usr/bin/php.

Comment thread recipe/cachetool.php Outdated
namespace Deployer;

set('cachetool', '');
set('cachetool_bin', function(){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to bin/cachetool

@hyde1
Copy link
Copy Markdown
Contributor Author

hyde1 commented May 23, 2018

Done!

@antonmedv antonmedv merged commit b52c5f9 into deployphp:master May 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants