Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CakePHP recipe, use the configured PHP version #2886

Merged
merged 2 commits into from
Jan 7, 2022

Conversation

steinkel
Copy link
Contributor

@steinkel steinkel commented Jan 7, 2022

  • Bug fix #…?
  • New feature?
  • BC breaks?
  • Tests added?
  • Docs added?

Tweak the CakePHP recipe to use the configured PHP version instead of the target system default. Useful when multiple PHP versions installed in the deploy target.

@@ -25,15 +25,15 @@
* Create plugins' symlinks
*/
task('deploy:init', function () {
run('{{release_or_current_path}}/bin/cake plugin assets symlink');
run('{{bin/php}} {{release_or_current_path}}/bin/cake.php plugin assets symlink');
Copy link
Member

Choose a reason for hiding this comment

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

.php?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, this file https://github.com/cakephp/app/blob/4.x/bin/cake.php called directly instead of the wrapper shell provided. It would allow you to use the right version of PHP configured in {{bin/php}} instead of relying on the shell to locate the default configured php version in the target env.

@antonmedv antonmedv merged commit f159c35 into deployphp:master Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants