Last active
January 8, 2024 01:50
-
-
Save erickpatrick/b883d31b4e75a15556e633888204c507 to your computer and use it in GitHub Desktop.
Laravel Homestead on Windows with SMB ("faster shared folders")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
ip: "192.168.10.10" | |
memory: 4096 | |
cpus: 2 | |
provider: virtualbox | |
authorize: C:/Users/<your-user>/.ssh/id_rsa.pub | |
keys: | |
- C:/Users/<your-user>/.ssh/id_rsa | |
folders: | |
- map: C:/Users/<your-user>/<your-shared-folder-path-on-host> | |
to: /home/vagrant/Code/<your-app> | |
type: "smb" | |
mount_options: ["username=USERNAME","password=PASSWORD","vers=3.02","mfsymlinks"] | |
sites: | |
- map: your.domain.com | |
to: /home/vagrant/Code/<your-app> | |
databases: | |
- homestead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This installs an auto upgrade mechanism to VirtualBox Guest Adittions | |
vagrant plugin install vagrant-vbguest | |
# This installs a bridge to NFS for Vagrant on Windows | |
vagrant plugin install vagrant-winnfsd | |
# From Laravel Homestead Documentation: | |
# - When using NFS, you should consider installing the vagrant-bindfs plug-in. | |
# This plug-in will maintain the correct user / group permissions for files | |
# and directories within the Homestead box. | |
vagrant plugin install vagrant-bindfs | |
########################################### | |
### PLEASE UPDATE YOUR HOMESTEAD.YAML ### | |
### FILE ACCORDINGLY (CHECK FILE BELOW) ### | |
### BEFORE RUNNNING COMMAND BELOW ### | |
########################################### | |
vagrant reload --provision |
If unable to mount shared folders, check this post https://stackoverflow.com/a/43497420
- this definitely solves the problems
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remeber to run
sudo apt-get install php7.1-mcrypt
as Magento 2 requires it