ruby on rails - what's the differences between rake assets:precompile and RAILS_ENV=production rake assets:precompile? -


what's differences between these 2 tasks, why need add rails_env=production when cap deploy?

thanks!

you need specify rails_env=production environment variable config/environments/production.rb configuration file used when precompiling assets. contains production configuration assets pipeline:

config.assets.js_compressor = :uglifier config.assets.digest = true 

if omit rails_env=production development configuration used (config/environments/development.rb).


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -