Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on using cleaning asset_strategy #156

Open
vinchi777 opened this issue Apr 17, 2018 · 0 comments
Open

Error on using cleaning asset_strategy #156

vinchi777 opened this issue Apr 17, 2018 · 0 comments

Comments

@vinchi777
Copy link

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(' ')}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant