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

Doesn't work with PHP 7.4 and Magento 2..42 #156

Open
walkwizus opened this issue May 7, 2021 · 4 comments
Open

Doesn't work with PHP 7.4 and Magento 2..42 #156

walkwizus opened this issue May 7, 2021 · 4 comments

Comments

@walkwizus
Copy link

Hi !

With Magento 2.4.2 and PHP 7.4.X,t he deployment doesn't work due to php's version in update/ directory. I've tried to update the Magento updater with this documentation: https://devdocs.magento.com/guides/v2.3/comp-mgr/updater/update-updater.html but without success.

To resolve this issue, I've deleted the update/ folder and all works fine. Do you think it would be possible to add a parameter not to update the updater?

https://github.com/davidalger/capistrano-magento2/blob/master/lib/capistrano/tasks/magento.rake#L132

Thanks !

@PascalBrouwers
Copy link

You could also try:

SSHKit.config.command_map[:php] = "/usr/bin/php74"
SSHKit.config.command_map[:composer] = "/usr/bin/php74 /usr/local/bin/composer"
SSHKit.config.command_map[:magento] = "/usr/bin/php74 -f bin/magento --"

(If /usr/bin/php74 is the location of your php 7.4.x)

@kalumbum
Copy link

Hi @PascalBrouwers ,
Can I have question? I try to check your guide on above but It's not working. I checked capistrano use ssh and php default running to build. I have multi PHP env on staging server, I need defined exactly PHP env. How can I set value SSHKit.config.command_map[:php] = "/usr/bin/php*" on deploy.rd.
Thank you

@PascalBrouwers
Copy link

Just put it somewhere in the deploy.rd doesn't really matter where. Though it's better to put it in your config/[environment].rd

@kalumbum
Copy link

Hi @PascalBrouwers,
I tried to add a command on file.rd. It's working now.
Thanks for support

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

No branches or pull requests

3 participants