It seems changes are not updated when I change files using rsync. I have this rsync script:
DEST1="/home/user/odoo8/addons"
DEST2="/home/user/odoo8/addons-bckp"
SRC="/home/user/odoo8/source/***/*"
for DEST in $DEST1 $DEST2; do
rsync -av --exclude='.git' $SRC $DEST
done
I'm running Odoo server with an option --auto-reload
which lets update python and xml files without having to restart server. If I modify files inside /home/user/odoo8/addons/
, then it updates even if I don't restart the server. But if I modify antyhing in source
directory, then do rsync to push changes to /home/user/odoo8/addons/
, changes are not updated. And it only updates if I restart the server.
Does pyinotify not work if you 'overwrite' files? For example, like using rsync?