You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jonas Drewsen edited this page May 12, 2014
·
5 revisions
This is linux only. Create a file called run.sh with the following content
#!/bin/bash
NAME=`sed -ne 's/.*"name": "\(.*\)".*/\1/; T; p' dub.json`
while true ;
do
dub build
if [ "$?" == "0" ] ; then
dub &
fi
inotifywait -r --exclude='.*\.css' --exclude '^.*#.*' --exclude dub.json --exclude $NAME -e modify ./
killall $NAME
done
Now make it executable using chmod a+x run.sh. You may need to install inotify-tools e.g. apt-get install inotify-tools.
Simply goto the project root directory and call ./run.sh
It will start vibe and then listen for changes in the project which will trigger a rebuild/restart.