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

How to use the extension with Docker? #3

Closed
dmitrach opened this issue Jul 14, 2021 · 5 comments
Closed

How to use the extension with Docker? #3

dmitrach opened this issue Jul 14, 2021 · 5 comments

Comments

@dmitrach
Copy link

Hello!
I want to run the fixer from a docker container, but if I set docker-compose exec -T container-name vendor/bin/phing php-cs-fixer in Tool path it doesn't work.

Can I change a path of environment or a path to run the fixer from the container?
Thanks.

@mansoorkhan96
Copy link
Owner

toolPath config option expects complete path to fixer file (.phar file).

something like this in your settings.json file:

"php-cs-fixer.toolPath": "path\\php-cs-fixer.phar",

@abbluiz
Copy link

abbluiz commented Jul 24, 2021

You should have a PHP executable accessible outside Docker for it to work.

@mansoorkhan96
Copy link
Owner

I am closing this issue for now, as there is no active discussion on this.

@dmitrach
Copy link
Author

dmitrach commented Oct 14, 2021

You should have a PHP executable accessible outside Docker for it to work.

Thank you.

@abbluiz It is not uncomfortably for me, because I have different PHP settings.

@mansoorkhan96
Copy link
Owner

You should have a PHP executable accessible outside Docker for it to work.

Thank you.

@abbluiz It is not uncomfortably for me, because I have different PHP settings.
What do you see when you run php -v?

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