Skip to content

Removed files do not get flagged for deletion #440

@julienbfabre

Description

@julienbfabre

In my initializer asset_sync.rb:

config.existing_remote_files = "delete"
config.remote_file_list_cache_file_path = File.join(Rails.root, 'data', 'asset_sync_remote_file_list_cache.json')
config.remote_file_list_remote_path = 'asset_sync_remote_file_list_cache.json'

after deleting some files i ran rake assets:precompile again but the deleted files were not flagged for deletion and remained in S3:

% rake assets:precompile
AssetSync: using /myapp/config/initializers/asset_sync.rb
AssetSync: Syncing.
Using: Directory Search of /myapp/public/assets
Downloading file list file from remote
Updating file list file in remote
Fetching files to flag for delete
Flagging 0 file(s) for deletion
AssetSync: Done.

I checked and the deleted files are still listed in data/asset_sync_remote_file_list_cache.json.
What am i missing to get the deleted files to be noticed and removed from S3?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions