Fixes to thread-safe loading

This commit is contained in:
Eric Schultz 2018-09-04 15:34:01 -05:00
parent d029cff707
commit 2189fba647
5 changed files with 14 additions and 2 deletions

View file

@ -52,7 +52,8 @@ Commitchange::Application.configure do
config.log_level = :debug
config.threadsafe!
config.threadsafe!
config.dependency_loading = true if $rails_rake_task
# Turn this on if you want to mess with code inside /node_modules
# config.browserify_rails.evaluate_node_modules = true

View file

@ -83,6 +83,8 @@ Commitchange::Application.configure do
config.assets.compile = false
config.threadsafe!
config.dependency_loading = true if $rails_rake_task
# Compress json
# config.middleware.use Rack::Deflater
end

View file

@ -68,4 +68,11 @@ Commitchange::Application.configure do
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
config.assets.compile = false
config.threadsafe!
config.dependency_loading = true if $rails_rake_task
# Compress json
# config.middleware.use Rack::Deflater
end

View file

@ -41,5 +41,8 @@ Commitchange::Application.configure do
config.log_level = :debug
config.action_controller.allow_forgery_protection = false
config.cache_store = :memory_store
config.threadsafe!
end

View file

@ -3,7 +3,6 @@ require 'qx'
require 'delayed_job_helper'
require 'active_support/core_ext'
Delayed::Worker.delay_jobs = false
module InsertBillingSubscriptions