vagrant - Provision script in Laravel/Homestead -
i wonder how can include provision script in laravel/homestead should execute each time homestead vm up.
as hint, used work vagrant in following way,
config.vm.provision :shell, path: "bootstrap.sh"
where bootstrap.sh
file provision script.
you can manually force provision either vagrant provision
or vagrant reload --provision
.
to make every vagrant up
automatically call provisioner define in vagrantfile so:
vagrant.configure("2") |config| config.vm.provision :shell, path: "bootstrap.sh", run: "always" end
you can choose not run provisioner using vagrant --no-provision
.
the vagrant docs on go little more detail else can provisioners.
Comments
Post a Comment