vagrant brunch detect file changes made on host
This commit is contained in:
parent
3913ae9909
commit
ae7f7fa44f
2 changed files with 4 additions and 1 deletions
|
@ -39,6 +39,9 @@ exports.config =
|
||||||
# So we remove the ones that have public in them.
|
# So we remove the ones that have public in them.
|
||||||
exec = require('child_process').exec
|
exec = require('child_process').exec
|
||||||
exec "perl -pi -e 's/\\/\\/# sourceMappingURL=public.*//g' public/javascripts/*.js"
|
exec "perl -pi -e 's/\\/\\/# sourceMappingURL=public.*//g' public/javascripts/*.js"
|
||||||
|
vagrant:
|
||||||
|
watcher:
|
||||||
|
usePolling: true
|
||||||
|
|
||||||
files:
|
files:
|
||||||
javascripts:
|
javascripts:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
vagrant ssh -c "sudo mount -o bind /node_modules /vagrant/node_modules"
|
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"
|
||||||
|
|
||||||
|
|
Reference in a new issue