it will happily sync the Gemfile.lock and yarn.lock files but not the db/schema.rb file.
The reason for this is (I think) this behaviour -- the --exclude=* matches db/ before it has a chance to look inside that directory to find the db/schema.rb that it's trying to include.
I think the correct rsync syntax in this situation would be:
Little update - I've created a PR that adds an rsync_options method and I'm using this to work around it (and also to prove it's working). That's in #568.
By way of example, if I have this configuration in my
Tiltfile
:it will happily sync the
Gemfile.lock
andyarn.lock
files but not thedb/schema.rb
file.The reason for this is (I think) this behaviour -- the
--exclude=*
matchesdb/
before it has a chance to look inside that directory to find thedb/schema.rb
that it's trying to include.I think the correct rsync syntax in this situation would be:
It would be great if the parent
--include
filters were included automatically. I can have a go at a PR for this if you think it would be useful!