server config

This commit is contained in:
polo
2019-05-30 17:08:36 +00:00
parent 7eb4842141
commit 0773c33b32
3 changed files with 8 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ Rails.application.configure do
# Code is not reloaded between requests.
config.cache_classes = true
config.serve_static_assets = true
config.public_file_server.enabled = true
# 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.

View File

@@ -7,7 +7,8 @@ Rails.application.config.assets.version = '1.0'
# Rails.application.config.assets.paths << Emoji.images_path
# Add Yarn node_modules folder to the asset load path.
Rails.application.config.assets.paths << Rails.root.join('node_modules')
Rails.application.config.assets.precompile += %w(application.js application.css)
Rails.application.config.public_file_server.enabled = true
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in the app/assets
# folder are already added.

4
yarn.lock Normal file
View File

@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1