讨论数量:
我之前的版本是 laravel/homestead,
更新后的版本是 lc/homestead,
解决方法:
找到文件 homestead.rb 修改config.vm.box = settings["box"] ||= "lc/homestead"
homestead.rb 在 scripts 路径下: vim /scripts/homestead.rb
class Homestead
def Homestead.configure(config, settings)
# Set The VM Provider
ENV['VAGRANT_DEFAULT_PROVIDER'] = settings["provider"] ||= "virtualbox"
# Configure Local Variable To Access Scripts From Remote Location
scriptDir = File.dirname(__FILE__)
# Allow SSH Agent Forward from The Box
config.ssh.forward_agent = true
# Configure The Box
config.vm.define settings["name"] ||= "homestead-7"
**config.vm.box = settings["box"] ||= "lc/homestead"**
config.vm.box_version = settings["version"] ||= ">= 4.0.0"
config.vm.hostname = settings["hostname"] ||= "homestead"
# Configure A Private Network IP
if settings["ip"] != "autonetwork"
config.vm.network :private_network, ip: settings["ip"] ||= "192.168.10.10"
else
config.vm.network :private_network, :ip => "0.0.0.0", :auto_network => true
推荐文章: