-
Notifications
You must be signed in to change notification settings - Fork 60
Add support for Docker based PHP Environmet #483
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
base: main
Are you sure you want to change the base?
Conversation
|
This is enough to get started if you have an existing Docker setup and you have figured out source code synchronization or if you are bind mounting your source tree. For other conditions, see below.
Bind mount (no mutagen) source tree
Steps to empty project setupCreate
Steps to bootstrap a Laravel app
Special NoteIf |
Support for Docker based PHP environment configurable with config keys:
{
"Laravel.dockerService": "php", // from `docker compose config --services`
"Laravel.dockerBase": "/app", // from `docker compose exec {dockerService} pwd`
}
This plugin does not auto boot Docker container(s) although it can be implemented in later revisions. For now, ensure that Docker container is running with configured dockerService name and dockerBase path as working directory before attempting to use the plugin with Docker support.
|
This is exactly what I need! Can we get this merged? |
|
https://open-vsx.org/extension/shanto/laravel-vscode https://marketplace.visualstudio.com/items?itemName=shanto.laravel-vscode Might help until merger or alternative implementation |
Support for Docker based PHP environment configurable with config keys:
{
"Laravel.dockerService": "php", // from
docker compose config --services"Laravel.dockerBase": "/app", // from
docker compose exec {dockerService} pwd}
This plugin does not auto boot Docker container(s) although it can be implemented in later revisions. For now, ensure that Docker container is running with configured dockerService name and dockerBase path as working directory before attempting to use the plugin with Docker support.
Addressing #191
With this commit, Docker environment should be supported and visible in
Laravelextension log like...