-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WSL Installation Upgrades and Documentation #1958
WSL Installation Upgrades and Documentation #1958
Conversation
- bin/homestead - Registered WslApplyFolderMapping command - scripts\features\mariadb.sh - stop the mysql service before uninstall and remove the installation tracking file. - scripts\features\mysql.sh - Create feature installation script for mysql. - scripts\features\postgresql.sh - removed `systemctl disable postgresq` from the end to make sure it works after the feature install - src\WslApplyFeatures.php - Changed the command name from wsl:apply-features to wsl:features. - src\WslApplyFolderMapping.php - Added new command to do folder mapping - src\WslCreateDatabaseCommand.php - Changed the command name from wsl:create-databases to wsl:databases. - src\WslCreateSiteCommand.php - Changed the command name from wsl:create-sites to wsl:sites. - Remove nginx/sites-enabled/* as well while removing existing nginx sites. - Add cron job for laravel schedule:run if mentioned in yaml file. - wsl.md - Documentation for Installing Homestead on Windows subsystem for Linux
@svpernova09 / @MichaelBelgium , I just fixed a typo that I found in wsl.md. This PR is ready to merge, let me know if there is anything else to be addressed. @svpernova09, I have checked php8.3.sh, there are only two environment vars ( |
Looks okay for me, I don't see the benefit of the So this change is from, eg,
to
If i'm correct, the command will loop through folders and create a symlink between ~/code and /mnt/c/Users//Documents/code Although, if someone does the config from below, the symbolic link will be useless i think?
in stead of
which is the symlink Lastly the checks you did before in wsl init, those were good, i'd keep those
|
My idea for wsl:folders was just to replicate the feature from vagrant. Website load much faster if the code is in Ubuntu's file system. Problem here is code would be lost if wsl is unregistered, unlike the previous approach. I will work on wsl:backup command that can easily backup the sites and database in future. Regarding the validations, I will go ahead and add those validations in wsl-init. Thanks. |
Giving this a review now. Sorry for the delays. I found a bug in the MariaDB installer so far. Should be good to merge this soon. |
I think we want to keep the WSL config separate from the Homestead Configuration. I traditionally have a giant Homestead.yaml that gets configured and passed around various machines and configurations. At some point this WSL stuff will need to get pulled out of Homestead because it's not really.... Homestead in the Vagrant sense. |
I updated the wsl-init to add those checks. P.S. Sorry for the delay, I was on long vacation. |
|
||
To install a distribution, use the following command: | ||
```powershell | ||
> wsl --install Ubuntu-22.04 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be wsl --install -d Ubuntu-22.04 isn't it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@karmendra I don't see the checks in this PR? |
Thanks @MichaelBelgium for checking this, I thought I have done the changes but looks like I have forgotten to push my changes. |
systemctl disable postgresq
from the end to make sure it works after the feature installwsl:apply-features
towsl:features
.wsl:create-databases
towsl:databases
.wsl:create-sites
towsl:sites
.