-
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
Implement WSL-specific commands and documentation updates for wsl installation #1956
Conversation
- .gitignore - Added .idea folder to be ignored. - bin/homestead - Added new wsl command wsl:folders. - scripts/features/mysql.sh - Added this mysql installation script. - bin/wsl-init.sh This is the script to provision the WSL, it is created from refering amd64.sh from laravel/settler. This is added currently, as not to disrupt wsl-init, but can later replace it. - src/WslApplyFeatures.php - Changed the command from wsl:apply-features to wsl:features to make it consistent with property names from Homestead.yaml file, Also changed code to show the installation more verbose on screen. - src/WslApplyFolderMapping.php - This is created to have the folder mapping done using symbolic link by running the command wsl:folders. - src/WslCreateDatabaseCommand.php - Changed the command from wsl:create-databases to wsl:databases, just to be consistent with Homestead.yaml file databases: configuration section. - src/WslCreateSiteCommand.php - Changed the command from wsl:create-sites to wsl:sites, again to be consistent with Homestead.yaml sites section. Also changed code to use the sites: configuration from yaml file instead of wsl_sites:. And also update the code to remove sites-enabled along with sites-available. - wsl.md - Initial Draft documentation to get started with Homestead on WSL.
Added code to switch to Homestead directory to satisfy relative paths in the script
Logging the script output in wsl-init.log and errors in wsl-init-error.log file. Also removed the Copy of ssl root certificate to Homestead folder, as it isn't generate until wsl:sites is run
created the directory /home/$WSL_UER_NAME/.homestead-features
Redirect all outout (stdout and stderror) to log_file and stdout. Redirect stderr to error_log_file and stdout.
Added feature script for postgresql
Let's target branch |
Also updated the wsl.md to use wsl-init instead of wsl-init.sh
I delete wsl-init.sh, for now. If you need any change from
I didn't modify |
I fixed the merge conflicts, Also added code in WSLCreateSiteCommand to configure cron for laravel scheduler. Please mind that I come from bitbucket background, so pardon my ignorance with github, guide me when required. Thanks. |
If site configuration in Homestead.yaml is having scheduler: true, then configure the cron job for the laravel site, else remove it. updated wsl.md Todo section
There's still something wrong with the merge i think, it like completely failed or something For instance
https://github.com/laravel/homestead/blob/wsl-rework/scripts/features/postgresql.sh
|
If I checkout your branch @karmendra (document-wsl-install) and (hard) reset to commit cebcad8, then after - when I merge wsl-rework I get these conflicts and edited files: Conflict:
Edited:
|
There is something not straight forward, allow me today, I will fix it. |
I tried various git commands to fix this, but didn't work. So I created a fresh PR to wsl-work branch itself. We can discard this PR and use the new one. |
Thanks for the work here. |
WslApplyFolderMapping.php
, to handle folder mapping in WSL from Homestead configuration.wsl:folders
to configure folder mapping in WSL.wsl:create-databases
towsl:databases
for consistency.wsl:create-sites
towsl:sites
for consistency.print_r
instead ofvar_dump
.WslCreateSiteCommand.php
to configure sites in Nginx for WSL.WslCreateDatabaseCommand.php
, to create databases in WSL from Homestead configuration.WslCreateSiteCommand.php
to configure laravel sites' cron schedule for WSL.