-
Notifications
You must be signed in to change notification settings - Fork 242
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
Not work on Rails 4 beta 1 production asset pipeline #24
Comments
Hi @rmm5t, Thanks for the reply. I don't think it's the same issue as I didn't see any errors or file not found. This issue is it works on development, but on production the helper method not returning the correct asset url with hash appended. |
Just to confirm before I dig deeper, do you have |
@lecky Initial testing against our test suite (with However, when I try to compile assets in your test_error project, I get the following error.
|
More information. If I move font-awesome-rails outside the assets group in your test_error Gemfile, everything works as expected (in production env) to compile the assets with the MD5 digests. |
I think the underlying problem is that Rails expects assets:precompile to be run outside a production environment. Thus Any ideas? |
@lecky I take everything back. It seems that everything is working as expected. It seems that Rails 4 just requires the
|
Hi @rmm5t , greate found ❗ 👍 The issue is with the rake task RAILS_ENV This one works: Not sure what got changed on Rails 4, but on the official guide http://guides.rubyonrails.org/asset_pipeline.html. The RAILS_ENV is not required. |
Thanks @lecky ! this just solved my problem 😄 Not sure why the RAILS_ENV=production is mandatory though =/ Seems like a useless param here. |
Here's the link for my test app: https://github.com/lecky/test_error
the asset_path seems not returning the correct url with the hash code. Here's what I got from the browser.
The text was updated successfully, but these errors were encountered: