Complete the code to set the Rails environment to production.
Rails.env = '[1]'
Setting Rails.env to production configures the app to run in production mode.
Complete the code to enable class caching in production.
config.cache_classes = [1]In production, cache_classes should be true to improve performance by not reloading classes.
Fix the error in the code to serve static files in production.
config.public_file_server.enabled = [1]Setting public_file_server.enabled to true allows Rails to serve static files in production.
Fill both blanks to configure log level and eager loading in production.
config.log_level = :[1] config.eager_load = [2]
Production uses :info log level for balanced logging and true for eager loading to load all code on boot.
Fill all three blanks to configure asset compilation and error reporting in production.
config.assets.compile = [1] config.consider_all_requests_local = [2] config.action_controller.perform_caching = [3]
In production, assets should not compile on the fly (false), error reports should be hidden (false), and caching should be enabled (true) for performance.