Fixes to thread-safe loading
This commit is contained in:
		
							parent
							
								
									d029cff707
								
							
						
					
					
						commit
						2189fba647
					
				
					 5 changed files with 14 additions and 2 deletions
				
			
		| 
						 | 
					@ -52,7 +52,8 @@ Commitchange::Application.configure do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	config.log_level = :debug
 | 
						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
 | 
						# Turn this on if you want to mess with code inside /node_modules
 | 
				
			||||||
	# config.browserify_rails.evaluate_node_modules = true
 | 
						# config.browserify_rails.evaluate_node_modules = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,6 +83,8 @@ Commitchange::Application.configure do
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.assets.compile = false
 | 
					  config.assets.compile = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						config.threadsafe!
 | 
				
			||||||
 | 
						config.dependency_loading = true if $rails_rake_task
 | 
				
			||||||
	# Compress json
 | 
						# Compress json
 | 
				
			||||||
	# config.middleware.use Rack::Deflater
 | 
						# config.middleware.use Rack::Deflater
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,4 +68,11 @@ Commitchange::Application.configure do
 | 
				
			||||||
	# with SQLite, MySQL, and PostgreSQL)
 | 
						# with SQLite, MySQL, and PostgreSQL)
 | 
				
			||||||
	# config.active_record.auto_explain_threshold_in_seconds = 0.5
 | 
						# 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
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -41,5 +41,8 @@ Commitchange::Application.configure do
 | 
				
			||||||
  config.log_level = :debug
 | 
					  config.log_level = :debug
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  config.action_controller.allow_forgery_protection = false
 | 
					  config.action_controller.allow_forgery_protection = false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  config.cache_store = :memory_store
 | 
				
			||||||
  config.threadsafe!
 | 
					  config.threadsafe!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,6 @@ require 'qx'
 | 
				
			||||||
require 'delayed_job_helper'
 | 
					require 'delayed_job_helper'
 | 
				
			||||||
require 'active_support/core_ext'
 | 
					require 'active_support/core_ext'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Delayed::Worker.delay_jobs = false
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
module InsertBillingSubscriptions
 | 
					module InsertBillingSubscriptions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue