I am developing angular4 app using vagrant. I have installed vagrant-fsnotify plugin in order to notify file system changes to trigger hot build. The problem I have is how to run automatically vagrant fsnotify
when vagrant booted?
Maybe vagrant-trigger can help you run this command everytime you boot your vm. An example should be like:
Vagrant.configure("2") do |config|
# Your existing Vagrant configuration
...
# start fsnotify on host after the guest starts
config.trigger.after :up do
run "vagrant fsnotify"
end
end
Correct form of trigger statement is:
# start fsnotify on host after the guest starts
config.trigger.after :up do |trigger|
trigger.run = {inline: "bash -c 'vagrant fsnotify > output.log 2>&1 &'"}
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With