syncing master
This commit is contained in:
16
watch.sh
Executable file
16
watch.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Watches for changes in the files and passes to docker
|
||||
# ignores the folders: node_modules, .git
|
||||
|
||||
cwd=$(pwd)
|
||||
|
||||
fswatch -0 -e node_modules -e .git -e env . | while read -d "" absPath
|
||||
do
|
||||
shortPath=""
|
||||
shortPath=${absPath/$cwd/$shortPath}
|
||||
echo "${shortPath}"
|
||||
docker cp $absPath helix:project${shortPath}
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user