Hi thanks for the tips, very helpful for me! Especially the hostsupdater plugin.
I'd like to add that instead of editing the Vagrantfile I moved the .homestead directory to C:\Users\ME\ .homestead which seems to work as well (on Win 8.1) and might be even easier.
THANK YOU REALLY MUCH!!! 3 months ago or so I wasted like 10 hours of searching how to make it work on Windows this Homestead, which as stated on laravel website "should be fast and easy to set up", however I gave up with no luck. But now with your message I made it to work.
I was wondering if you would be so kind to share your Homestead.yaml and VirtualBox network settings with us. Specifically the IP settings. I seem to be having some trouble in this area. It would be greatly appreciated. Thank you for sharing your time and experience with the community. Peter
Sorry I missed the previous replies.
wgmv: I got tired of editing the hosts files by hand, so the plugin really helps.
MindisWorld: Glad it worked for you, in my opinion the last version was a lot easier to setup. Especially since they now want php and composer on the host machine, not something I want personally.
peterbata: Here is the Homestead.yaml file. I've upped the CPUs from 1 to 3 as I have an 8 core cpu so figured why not. The aliases is used by the hostsupdater plugin, mentioned above. I have about 4 or so more sites configured but I shortened it a bit to post here, no point for that many repeats. It's not much different from the default, https://github.com/laravel/homestead/blob/master/src/stubs/Hom... You could add the databases to have them created when provisioning, just as easy ssh in and create it when adding in a new site.
--- ip: "192.168.10.10" memory: 2048 cpus: 3 authorize: C:\Users\tporter\.ssh\id_rsa.pub keys: - C:\Users\tporter\.ssh\id_rsa aliases: ["dev1.lan", "dev2.lan", "dev3.lan", "dev4.lan", "phptesting.lan"] folders: - map: C:\local_devel\Code to: /home/vagrant/Code sites: - map: dev1.lan to: /home/vagrant/Code/dev1/public - map: dev2.lan to: /home/vagrant/Code/dev2/public - map: dev3.lan to: /home/vagrant/Code/dev3/public - map: dev4.lan to: /home/vagrant/Code/dev4/public - map: phptesting.lan to: /home/vagrant/Code/phptesting/public databases: - homestead variables: - key: APP_ENV value: local
Nothing customized on the network settings, its the vagrant defaults - not sure what info to provide. What trouble are you having with the network ?
One cavaot, I noticed this version creates one virtual box named Homestead. I've not tested if I can create a second folder and it not overwrite the previous virtualbox instance. I have not gone futher to put back in the random-string addon to the name so that I can have multiple homestead instances if I want.
A small update to this, you can change the VM name in the scripts\homestead.rb file, around line 15
vb.name = 'homestead'
This is the name of the virtual machine to be used.
I've updated my file to allow me to specify a name in the .homestead\homestead.yaml file
vb.name = settings["vmname"] ||= "homestead"
then in the yaml file,
"In the folder c:\local_devel\Homestead2 I created a new folder called .homestead"
Windows 8.1 won't let me create a folder called .homestead - I don't think it likes the leading "." - it just says "you must type a filename" - any suggestions? Thanks
You can change the name of the .homestead, on my laptop which is running 8.1 it is just homestead.
You will need to update the vagrantfile and remove the dot from .homestead, or you can name it something else as long as it matches the folder name where the files are.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us