My development blog about PHP, Nette Framework, ElasticSearch or occasional short tips.
Pro začátek potřebujeme dvě věci. První je nainstalovaný XServer, zdarma appku najdeš tady https://apps.microsoft.com/store/detail/gwsl/9NL6KD1H33V3 . Druhá je temp složka uvnitř WSL2 kde začneme s návodem.
wget https://download.jetbrains.com/webide/PhpStorm-2022.1.2.tar.gz
sudo mkdir -p /opt/phpstorm
sudo tar -xzvf PhpStorm-2022.1.2.tar.gz -C /opt/phpstorm
/opt/phpstorm/PhpStorm-221.5787.33/bin/phpstorm.sh
alias phpstorm='/opt/phpstorm/PhpStorm-221.5787.33/bin/phpstorm.sh > /dev/null 2>&1 &'
sudo apt install inotify-tools
sudo sh -c "echo \"fs.inotify.max_user_watches = 524288\" >> /etc/sysctl.conf"
sudo sysctl -p
Extrahováno z https://www.pimwiddershoven.nl/entry/lightning-speed-development-on-windows-10-with-wsl-2-docker-terminal-and-jetbrains-intellij-pycharm-phpstorm