Topic: Rails3.1rc4: CoffeeScript Precompilation Breaks in/for Production
application.js (application code) application_test.js (Jasmine tests for application code) base.js (vendor and third-party frameworks) base_test.js (vendor frameworks for testing, i.e. Jasmine)
We'll look at two. Examples of application and base:
// application.js //= require_self //= require_tree ../../models //= require_tree ../../controllers //= require_tree ../../views // .... more application specific code ....
In development, this all works fine. When I go to precompile it or run in/for production mode, it breaks. That is, I run this command: "bundle exec rake assets:precompile RAILS_ENV=production". And just for completeness, my production.rb has this:
config.assets.precompile += %w( application_test.js base.js base_test.js base.css )
Thoughts? I'm using Rails 3.1 rc4 with sprockets 2 beta.10. Why this is not working baffling me.
Last edited by onedanshow (2011-06-21 13:26:13)