Answer the question
In order to leave comments, you need to log in
How to setup watch/livereload from virtualbox?
Created a gulp project in Virtualbox (vagrant + nginx) with watch/livereload. The files are on the working machine, I made a mount on the folder, the gulp project starts without errors, but it does not track file changes and, accordingly, does not update the project files in the browser.
ps The project on the working machine works ok, only from under Virtualbox does not work.
VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/trusty64" config.vm.network "forwarded_port", guest: 80, host: 8282 config.vm.network "forwarded_port", guest: 3308, host: 33308 config.vm.network "private_network", ip: "10.5.5.58" config.vm.synced_folder '.', '/home/vagrant/code', nfs: true config.vm.provider "virtualbox" do |v| v.gui = false # Use VBoxManage to customize the VM. For example to change memory: v.customize ["modifyvm", :id, "--memory", "512"] v.customize ["modifyvm", :id, "--cpuexecutioncap", "95"] v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] end config.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question