You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.
I'm trying to use the cachetool recipe, but it fails.
Actually, the command in locateBinaryPath fails and returns 1 (I don't have cachetool.phar, the recipe should download it)
It tried running command, which & type manually, but all of them return 1.
It looks like cachetool.phar is not really "executable", so it fails (actually, we have to do php cachetool.phar to execute CacheTool). locateBinaryPath doesn't work for cachetool.phar
In Client.php line 103:
The command "export SYMFONY_ENV='prod'; command -v 'cachetool.phar' || which 'cachetool.phar' || type -p 'cachetool
.phar'" failed.
Exit Code: 1 (General error)
I fixed it like this, by testing the existence of the file
set('bin/cachetool', function () {
if (!test('[ -f {{release_path}}/{{cachetool_binary}} ]')) {
run('cd {{release_path}} && curl -sSO https://gordalina.github.io/cachetool/downloads/{{cachetool_binary}}');
}
return '{{release_path}}/{{cachetool_binary}}';
});
Should I submit a pull request?
The text was updated successfully, but these errors were encountered:
Description
I'm trying to use the cachetool recipe, but it fails.
Actually, the command in
locateBinaryPath
fails and returns1
(I don't havecachetool.phar
, the recipe should download it)It tried running command, which & type manually, but all of them return 1.
It looks like
cachetool.phar
is not really "executable", so it fails (actually, we have to dophp cachetool.phar
to execute CacheTool).locateBinaryPath
doesn't work forcachetool.phar
Steps to reproduce
Content of
deploy.php
Output log
I fixed it like this, by testing the existence of the file
Should I submit a pull request?
The text was updated successfully, but these errors were encountered: