Ad

Homestead Attempting To Re-download Box

- 1 answer

I manually downloaded laravel homestead box from atlas and the version i downloaded is 0.2.6 of laravel/homestead.

Then i git clone https://github.com/laravel/homestead.git Homestead.

After doing the other necessary configurations when i am trying to run vagrant up from Homestead directory, it is starting to download the laravel/homestead box again with version 0.4.0.

My internet is slow and i cannot afford to download the box again. Is there any way i can tell Homestead to use the existing homestead box already exist in my ~/.vagrant.d directory.

Thanks

Ad

Answer

Try this:

Locate this homestead.rb at your drive, mine is at C:\Users\SuperComputer\Homestead\scripts\homestead.rb

Edit it using text editor.

try find this word syntax:

config.vm.box_version = settings["version"] ||= ">= 0"

change it to

config.vm.box_version = settings["version"] ||= "= 0.2.6"

Ad
source: stackoverflow.com
Ad