Skip to content

Error on using cleaning asset_strategy #156

@vinchi777

Description

@vinchi777

The comand that removes/cleans the assets is getting an error.
Mostly because the command is too long.

engineyard-serverside-2.6.14/lib/engineyard-serverside/spawner.rb:125:in exec: Argument list too long

I checked the source code and its joining the files to be removed.

    //engineyard-serverside/lib/engineyard-serverside/rails_assets/strategy.rb
     remove_assets = []
            (assets_on_disk - assets_in_manifest).each do |asset|
              remove_assets << "'#{asset}'"
              remove_assets << "'#{asset}.gz'" if all_assets_on_disk.include?("#{asset}.gz")
            end
            run("rm -rf #{remove_assets.join(' ')}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions