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
Post a Comment