diff --git a/uploaddev.sh b/uploaddev.sh index 19c8641..01952e2 100755 --- a/uploaddev.sh +++ b/uploaddev.sh @@ -12,4 +12,4 @@ STUFF="src www presets fonts ledder package.json displayconf.js" #find $STUFF|entr -s "npm run build; rsync -avx $STUFF root@$IP:ledder && ssh root@$IP 'pkill node ;cd ledder && node js/server.js'" #npm run build #find $STUFF| entr -r -s "rsync -avx . root@$IP:ledder && ssh root@$IP 'pkill node; tmux new -d \"cd /root/ledder; node src/js/server/server.js\" '" -find $STUFF| entr -r -s "rsync -avx $STUFF root@$IP:ledder && ssh root@$IP 'pkill loop;pkill node; cd /root/ledder; NODE_ENV=production node ledder/server/server.js'" +find $STUFF| entr -r -s "rsync -avx --exclude index.json $STUFF root@$IP:ledder && ssh root@$IP 'pkill loop;pkill node; cd /root/ledder; NODE_ENV=production node ledder/server/server.js'" diff --git a/uploadprod.sh b/uploadprod.sh index c1fc753..8ab76a8 100755 --- a/uploadprod.sh +++ b/uploadprod.sh @@ -11,4 +11,4 @@ STUFF="images src www presets fonts ledder package.json" #rsync -avx $STUFF root@$IP:ledder ||exit 1 #ssh root@$IP 'pkill node ;cd ledder && npm run production' -find $STUFF| entr -r -s "rsync -avx $STUFF root@$IP:ledder && ssh root@$IP 'pkill loop; pkill node; cd /root/ledder; NODE_ENV=production node ledder/server/server.js'" +find $STUFF| entr -r -s "rsync -avx --exclude index.json $STUFF root@$IP:ledder && ssh root@$IP 'pkill loop; pkill node; cd /root/ledder; NODE_ENV=production node ledder/server/server.js'"