Pour eviter d'avoir un projet qui tourne à 2 à l'heure, il est important de cloner le projet directement dans votre wsl (ubuntu, debian) a l'endroit que vous voulez Lancer son WSL depuis Powershell :
wsl -d ubuntu
Pour avoir la commande make :
sudo apt-get install build-essentialDans le WSL
cd ~ git clone https://github.com/Drigtime/M2-choix-options.git cd M2-choix-options sudo chmod 777 project/var/ -RDans l'explorer windows il est possible d'accéder au dossier de son projet via ce chemin
\\wsl.localhost\Ubuntu\home\drigtime\M2-choix-options
docker-compose up -d --build
docker-compose exec php composer install
docker-compose exec php yarn install
docker-compose exec php yarn build
En une commande (powershell) :
docker-compose up -d --build; docker-compose exec php composer install; docker-compose exec php yarn install; docker-compose exec php yarn build
docker-compose up -d
docker-compose down
docker-compose exec php bash
- Server web http://localhost:8101
- phpmyadmin http://localhost:8102
- mailhog http://localhost:8025
Avoir accès au container Docker depuis PhpStorm directement https://www.jetbrains.com/help/phpstorm/configuring-remote-interpreters.html select 'Docker compose'