If your assets directory has a lot of compressible files, e.g. text, XML, JS, etc. rsync -z to compress can be worthwhile. Rather than -r which just recurses into the directory, consider -a (--archive) which preserves timestamps, ownership, symlinks, etc. Depending on circumstances this can be less surprising...
Worth noting that at the end of
products_controller.rb
you'll need to add:released_on
to get through the param filter,If your assets directory has a lot of compressible files, e.g. text, XML, JS, etc. rsync -z to compress can be worthwhile. Rather than -r which just recurses into the directory, consider -a (--archive) which preserves timestamps, ownership, symlinks, etc. Depending on circumstances this can be less surprising...