I just prefer to use a linux system (whole operating system) for some things and have full server setup.
I guess WSL 2 would be similar.
However many people develop in WIndows. I used to develop Java ee in WIndows using netbeans.
I recently tried to find a laptop with no OS so I could install Lubuntu. I couldn't find one locally so I bought a used one with WIn 10 and deleted all partitions and installed Lubuntu.
Linux is bigger on servers, not everyday computing. In such a case I can see where some might like WSL 2.
@jlrdw Yeah I work with linux in my office machine aswell. My home laptop is windows and I just can't stand the appearance of the layout anymore, lacking so much customization, everything on terminal needs a workaround to be like unix commands, like, just let me delete system32 folder plz
@JussiMannisto I used it very little and it seems to have put the files on my SSD, idk if it made a new partition or if it is somehow shared, but if you say so, I hope I don't need to transfer large files between them
wsl works ok, but the whole windows environment is such a pile of sh**
It seemed like every time i got my laptop out it would make me wait whilst it was doing some upgrade or other, and then rebooting etc etc
Fortunately I was able to afford it so I bought a macbook air and its such a joy to use. Battery life is great, it never suddenly fires up the fans and runs hot for no apparent reason ( like my windows machine) and it's always ready to work when I am. I literally flip the lid and start typing.
@Snapey I work with Ubuntu at my office but my home notebook is a relatively new Dell G5 with Windows and I didn't want to dual boot or vm ubuntu on it. But i totally get your point, my fingers burn very often and the fans drive me crazy. Unfortunately Apple gadgets are really expensive where I live (the mac air is around 6 months worth of my wage). Definetely my goal tool tho.
wsl2 is fine , but , it shares hosts file with parent system , you cannot do anything related with that like virtural host name.
And everytime it starts , the IP address will change, that is not cool.
but you can do some linux command to get ip address when it starts then write it in your env file of your project.
WSLIP=$(ip addr show eth0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}')
sed -i 's/VITE_SERVER_IP=.*/VITE_SERVER_IP='$WSLIP'/g' /path/yourproject/src/.env
@MaverickChan I never used custom virtual host names. I think it is that mapping from localhost to myproject.test thing that we're used to see right?
Thanks for your answer, I'd like to know more about it 🤓