mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-06 22:44:14 +00:00
Trying to gzip assets to render faster
This commit is contained in:
@@ -7,6 +7,7 @@ require 'rails/all'
|
|||||||
Bundler.require(:default, Rails.env)
|
Bundler.require(:default, Rails.env)
|
||||||
|
|
||||||
module Wrestling
|
module Wrestling
|
||||||
|
|
||||||
class Application < Rails::Application
|
class Application < Rails::Application
|
||||||
# Settings in config/environments/* take precedence over those specified here.
|
# Settings in config/environments/* take precedence over those specified here.
|
||||||
# Application configuration should go into files in config/initializers
|
# Application configuration should go into files in config/initializers
|
||||||
@@ -24,6 +25,8 @@ module Wrestling
|
|||||||
config.assets.initialize_on_precompile = false
|
config.assets.initialize_on_precompile = false
|
||||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
|
||||||
config.active_job.queue_adapter = :delayed_job
|
config.active_job.queue_adapter = :delayed_job
|
||||||
|
#gzip assets
|
||||||
|
config.middleware.use Rack::Deflater
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user