How to automatically start the fsnotify firewall?

I am developing an angular4 application using a stroller. I installed the vagrant-fsnotify plugin to notify file system changes to run hot build. The problem is, how do you automatically start strollers vagrant fsnotifywhen loading?

+4
source share
1 answer

Perhaps vagrant-trigger can help you run this command every time you boot vm. An example should look like this:

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
0
source

Source: https://habr.com/ru/post/1673286/


All Articles