debian-mirror-gitlab/config/unicorn.rb.example.development

16 lines
402 B
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
worker_processes 2
2015-04-26 12:48:37 +05:30
timeout 60
2018-03-17 18:26:18 +05:30
before_fork do |server, worker|
if /darwin/ =~ RUBY_PLATFORM
require 'fiddle'
# Dynamically load Foundation.framework, ~implicitly~ initialising
# the Objective-C runtime before any forking happens in Unicorn
#
# From https://bugs.ruby-lang.org/issues/14009
Fiddle.dlopen '/System/Library/Frameworks/Foundation.framework/Foundation'
end
end