The watch task uses watchman (https://facebook.github.io/watchman/) to watch out for file changes. We'll need to build watchman from the original source and here are the commands you need:
$ cd ~ $ git clone https://github.com/facebook/watchman.git $ cd watchman/ $ git checkout v4.9.0 $ sudo apt-get install -y autoconf automake build-essential python-dev libtool pkg-config $ ./autogen.sh $ ./configure $ make $ sudo make install $ watchman --version
If watchman has built successfully then the correct version number will be output.
inotify is used to listen for file changes and it's worth increasing the number of inotify watchers (depending on your development environment, it's easy to run out of watchers). Run the following:
$ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Now navigate to your Moodle directory and run the following:
$ grunt watch
Lumina Consultancy are software programming, web development and web security specialists.
We build it, we host it, and we keep it safe.
Please get in touch to learn more about us and our work.
© 2020 Lumina Consultancy Limited | UK Company Registration No: 10627969 | VAT Registration No: 344 5130 25