![]() ![]() If you’re on Windows, running PhpStorm on the Windows side but using WSL2 for your DDEV project, open the project as a WSL2 project.In this example, the project name is “d9” and the site is “d9.ddev.site”. ![]() Start your project by running ddev start.If you’re not using the DDEV Integration Plugin, you can follow these steps instead: Install and enable the plugin, then set up phpunit since it doesn’t yet handle that for you. The integration plugin handles nearly everything on this page automatically, and works on all platforms. It’s easiest to use the DDEV Integration Plugin, which you can install from its landing page or by searching the in-app marketplace ( Preferences → Plugins → Marketplace) for “DDEV”. If you’re using WSL2 and running PhpStorm on the Windows side, PhpStorm can’t use docker-compose from WSL2, so configure Docker Desktop in Settings → General to “Use Docker Compose V2” and use a recent version of Docker Desktop. ddev/bin/docker-compose file relative to your home directory. In PhpStorm, navigate to Preferences → Build, Execution, Deployment → Docker → Tools, and set the docker-compose executable to the full path of your. Regardless of your setup, you need to have PhpStorm use DDEV’s private docker-compose executable. Make sure to get at least one project going with ddev start before trying to set up the plugin, because the plugin assumes it has a project to work with.If you work with the PhpStorm IDE, you can configure it for tight integration with DDEV and Docker to more easily run actions, access services, enable autocompletion, and enjoy a more convenient development experience. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |