Asset fixes (#740)

This commit is contained in:
farhatahmad 2019-08-14 17:05:14 -04:00 committed by Jesus Federico
parent 89f36c1766
commit 4d14c5fc23
6 changed files with 8 additions and 13 deletions

View File

@ -42,7 +42,7 @@
@import "main";
@import "rooms";
@import "sessions";
@import "monolith.min.css";
@import "monolith.min.scss";
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500|Source+Sans+Pro:300,300i,400,400i,600,600i,700,700i&display=swap&subset=latin-ext);

View File

@ -6,14 +6,6 @@ Rails.application.configure do
# Code is not reloaded between requests.
config.cache_classes = true
# Cache controller code
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.years.to_i}"
}
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
@ -24,6 +16,11 @@ Rails.application.configure do
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{1.years.to_i}"
}
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
# or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
# config.require_master_key = true

View File

@ -13,4 +13,4 @@ Rails.application.config.assets.version = '1.0'
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.
Rails.application.config.assets.precompile += %w(pickr.min.js pickr.min.js.map monolith.min.css)
Rails.application.config.assets.precompile += %w(pickr.min.js monolith.min.scss)

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long