here is a way todo it right
RAILS_ENV=production bundle exec rake assets:precompile
ensure that you have (config/application.rb) set
config.assets.initialize_on_precompile = false
and for development:
config/environment/development.rb
config.assets.prefix = '/dev-assets' # to avoid assets precompile everytime u change a css or js