-
Notifications
You must be signed in to change notification settings - Fork 128
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
rake assets:precompile
not resolving
#72
Conversation
What does the error message say? |
"couldn't find file ...", where file is a dependency that would be in bower_components.
|
Could you, please, try |
Same error as above. |
Could you test this branch again? |
Hmm, no change. |
I've tried and had success. Have you updated gem? |
Yeah, updated from
Using Ruby 2.0.0 and Rails 3.2.17. |
@SergeyKishenin Any ideas? Seems like it should Just Work. |
That's very strange as I have it working with Rails 4.0.4 and Ruby 2.1.1. Anyway I have to do a fix to make |
I've added before hook to perform bower tasks before precompilation and now have to following trace: $ rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
** Execute assets:precompile
** Invoke bower:install (first_time)
** Execute bower:install
bower.js files generated
/usr/bin/bower install
bower moment#* cached git://github.com/moment/moment.git#2.6.0
bower moment#* validate 2.6.0 against git://github.com/moment/moment.git#*
bower moment#* install moment#2.6.0
moment#2.6.0 bower_components/moment
** Invoke bower:resolve (first_time)
** Execute bower:resolve
** Invoke assets:precompile (first_time)
** Invoke assets:environment
** Execute assets:precompile
I, [2014-04-22T16:23:59.500561 #5699] INFO -- : Writing /home/sergey/src/xxxxxxx/public/assets/application-afa23a41925dba57b4166b41335d4d49.js
I, [2014-04-22T16:23:59.565702 #5699] INFO -- : Writing /home/sergey/src/xxxxxxx/public/assets/application-a029bd03bea21da7d02c0e9d272edc3a.css |
Confirmed working with Rails 4.0.1 with |
Looks like asset_sync had a similar issue: AssetSync/asset_sync#41 |
Following what asset_sync did, I added this file: # lib/tasks/bower_rails.rake
Rake::Task['assets:precompile'].enhance ['bower:install', 'bower:resolve'] And it works. Check out this commit for reference. |
Well, does this invoke |
Seems to.
|
I've just found that with Rails 3.2.x |
I also found that a little bit ago! |
Well, as a workaround I placed bower-rails' initializer code to UPD: or require initializer in |
…le running initializer
`rake assets:precompile` not resolving
Maybe I'm doing this wrong? Starting with no dependencies and running
rake assets:precompile
I get an error for a missing dependency. Looking at the trace, it doesn't seem likebower:install
is ever called.What am I missing?