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

Use Site PHP Version to Run Composer Install #218

Merged
merged 1 commit into from
May 22, 2024

Conversation

devsarfo
Copy link
Contributor

@devsarfo devsarfo commented May 21, 2024

As mentioned by @maxcelos When creating a new site with the "Run composer install --no-dev" flag, it runs with the default PHP CLI, ignoring the PHP version selected in the form. It should use the selected PHP version.

This should pass the php_version to the getScript function to be used in the composer-install.sh

image
image

@saeedvaziry
Copy link
Member

@devsarfo VitoDeploy doesn't set that kinda aliases for PHP binary.

image

@devsarfo
Copy link
Contributor Author

@saeedvaziry The change uses the php_version from the Site Model as shown below.
image

The version would be 8.2 instead of 82 and the command would run as shown below
image

@saeedvaziry
Copy link
Member

@devsarfo oh my bad. thats cool tnx

@saeedvaziry saeedvaziry merged commit dd4a3d3 into vitodeploy:1.x May 22, 2024
2 checks passed
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