vagrant brunch detect file changes made on host

This commit is contained in:
Alan Hohn 2015-04-03 17:21:28 -04:00
parent 3913ae9909
commit ae7f7fa44f
2 changed files with 4 additions and 1 deletions

View file

@ -39,6 +39,9 @@ exports.config =
# So we remove the ones that have public in them.
exec = require('child_process').exec
exec "perl -pi -e 's/\\/\\/# sourceMappingURL=public.*//g' public/javascripts/*.js"
vagrant:
watcher:
usePolling: true
files:
javascripts:

View file

@ -1,4 +1,4 @@
#!/bin/sh
vagrant ssh -c "sudo mount -o bind /node_modules /vagrant/node_modules"
vagrant ssh -c "cd /vagrant && bin/coco-brunch"
vagrant ssh -c "cd /vagrant && BRUNCH_ENV=vagrant bin/coco-brunch"