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

Would not compile other assets with config.assets.precompile directive #3

Open
jgrannas opened this issue Nov 19, 2014 · 6 comments
Open

Comments

@jgrannas
Copy link

In my staging.rb environment file i was trying to precompile these files:

config.assets.precompile += ['admin/admin.css', 'admin/admin.js']

I had to remove the capistrano-faster-assets gem for this to work.

@jgrannas jgrannas changed the title Would not compile other assets Would not compile other assets with config.assets.precompile directive Nov 19, 2014
@wioux
Copy link

wioux commented Mar 16, 2015

I had a similar problem and got it working by adding my additional files to the cap variable assets_dependencies. Here's what I did:

# in config/deploy.rb
set :assets_dependencies, fetch(:assets_dependencies) + Dir['engines/*/app/assets']

@westonganger
Copy link

Is there a proper fix for this?

@TJM
Copy link

TJM commented Jun 5, 2015

Would it be reasonable to "read" the application configuration to retrieve that setting, rather than duplicate it in deploy.rb or deploy/staging.rb?

@mattherick
Copy link

@TJM +1

@TJM
Copy link

TJM commented Jul 1, 2015

Not saying I know how to do that 😀, but if we could figure out how to "ask" the application for its asset directories, it would "DRY" it up a bit?

@mattherick
Copy link

Yes, that would be great!

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

5 participants