This article address some common problems/caveats when using WSL as your daily development environment.
This article requires Windows 10 (Build Version 1709 [The Fall Creators Update]) or above to work.
Although WSL exists since Version 1607 [Anniversary Update], it’s harder to setup and more buggy.
In this tutorial we will setup this development environment in WSL (In Part 1)
PHP 7.2 (Run as FPM)
With those tools under Windows 10 (In Part 2)
Bash and Linux CLI tools
Deployer – https://deployer.org/
A zero downtime PHP deployment tool.
How it works?
SSH into the remote server,
git clone to new folder,
composer install, and create symlink to latest release folder
And optionally run database migration, restart PHP-FPM. If either step fails, it rollbacks the whole transaction.