what's the differences between rake assets:precompile and RAILS_ENV=production rake assets:precompile?
assets, ruby-on-rails
Solution
You need to specify `RAILS_ENV=production` environment variable so that your `config/environments/production.rb` configuration file is used when precompiling assets. It usually contains production configuration for assets pipeline:
config.assets.js_compressor = :uglifier
config.assets.digest = true
If you omit `RAILS_ENV=production` then `development` configuration will be used (`config/environments/development.rb`).
Problem
what's the differences between these two tasks, why i need to add RAILS_ENV=production when cap deploy? thanks!