-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
I currently try to run vendor/bin/dep db:pull prod
and have issues with php versions / discover
Case 1
This case fails, with task db:export:
[prod] [prod] run cd /home/typo3cms/app/current && /home/typo3cms/bin/php /home/typo3cms/app/current/vendor/bin/dep db:export prod --options=tags:pull,dumpcode:3d38c6633b2c0c4295d0f269587bf410
[prod] [prod] task db:export
[prod] [prod] [prod] Deployer\Exception\ConfigurationException in Typo3CmsDriver.php on line 23:
[prod] [prod] [prod]
[prod] [prod] [prod] Command: "/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php vendor/bin/typo3 configuration:showactive DB --json" returned error code: "127"
[prod] [prod] [prod]
deploy.php
on local & remote:
host('prod')
->set('deploy_path', '/home/typo3cms/app')
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', '/home/typo3cms/bin/php')
;
host('local')
->set('deploy_path', getcwd())
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', 'php')
;
Case 2
This case works, but only when on local and remote are different deploy.php
deploy.php
on local:
host('prod')
->set('deploy_path', '/home/typo3cms/app')
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', '/home/typo3cms/bin/php')
;
host('local')
->set('deploy_path', getcwd())
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', 'php')
;
deploy.php
on remote:
host('prod')
->set('deploy_path', '/home/typo3cms/app')
->set('php_version', '8.2')
->set('local/bin/php', '/home/typo3cms/bin/php')
->set('bin/php', '/home/typo3cms/bin/php')
;
host('local')
->set('deploy_path', getcwd())
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', 'php')
;
Case 3
This case fails, with task db:pull:
[prod] error in db_pull.php on line 80:
[prod] run /home/typo3cms/bin/php ./vendor/bin/dep db:export prod --options=tags:pull,dumpcode:e21f0697b0adb8b8320f1045a2d54636
[prod] err bash: line 1: /home/typo3cms/bin/php: No such file or directory
[prod] exit code 127 (Command not found)
ERROR: Task db:pull failed!
deploy.php
on local & remote with each host setting:
host('prod')
->set('deploy_path', '/home/typo3cms/app')
->set('php_version', '8.2')
->set('local/bin/php', '/home/typo3cms/bin/php')
->set('bin/php', '/home/typo3cms/bin/php')
;
host('local')
->set('deploy_path', getcwd())
->set('php_version', '8.2')
->set('local/bin/php', '/opt/homebrew/Cellar/php@8.2/8.2.28_1/bin/php')
->set('bin/php', 'php')
;
Seems like there is a wrong 'local/bin/php' resolve during pull? Or do i misunderstand something?
Metadata
Metadata
Assignees
Labels
No labels