set production.rb config.assets.compile = true

also add gem 'sprockets_better_errors'