-
Notifications
You must be signed in to change notification settings - Fork 18
Missmatch with 'local/bin/php' on remote & local #37
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
Comments
Updated with case 3 |
Tnx for testing and sry for this bug. I overlooked this because I was testing only the "php auto detection form composer.json" mode. Now I also tested the plain path to php Please check the branch |
Nothing to worry about!
For this i need to require this package separatly, or? |
@develth |
Thanks. For clearification: |
It is the one from current host definition. We can not use Therefore we have separate https://github.com/deployphp/deployer/blob/master/recipe/common.php#L110 |
BTW: Consider using the php path autodetection. This is enough that the PHP you want to use is in PATH and can be found like My host definitions looks like below.
|
I pushed the tag 20.0.1 with this fix. |
Now i get Edit: The documentation is wrong here, it states |
Documentation is ok. Those misunderstandings are because the way It runs part of the commands form local level, I'd say the standard way. But part of commands are remote calls of deployer at server level - this is something which makes the problems. When you run deployer at the remote host, as above example, then if this command needs to connect to ssh to work (a regular I see however one improvement we can do here.
I probably will not throw an error when those phpX.Y from This actually was the way it was working in previous versions of So could be even that this will be a bugfix for previous behaviour. |
The documentation repeatedly states that for a local environment, you should configure:
However, in db_pull.php, the code references: This suggests a discrepancy, as there's no mention of 'local/bin/php' path anywhere in the documentation, only 'bin/php'. The documentation should be updated to resolve this inconsistency, I think. |
Yes. You right. |
If you install 20.1.0 then probably you can remove The docs are also updated! :) |
I currently try to run
vendor/bin/dep db:pull prod
and have issues with php versions / discoverCase 1
This case fails, with task db:export:
deploy.php
on local & remote:Case 2
This case works, but only when on local and remote are different deploy.php
deploy.php
on local:deploy.php
on remote:Case 3
This case fails, with task db:pull:
deploy.php
on local & remote with each host setting:Seems like there is a wrong 'local/bin/php' resolve during pull? Or do i misunderstand something?
The text was updated successfully, but these errors were encountered: