Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJames Newton <james@Zaphyous.com>2013-01-10 08:17:03 +0400
committerJames Newton <james@Zaphyous.com>2013-01-10 08:17:03 +0400
commit2b38c8a15682f7531d97eb9f4758821148741469 (patch)
treee35974c9a8d3be7937d8cb787bb9c8809c90335a /config
parent7cd03836e55f842fd518b4637c19235ee8701f17 (diff)
remove passenger_fix.rb, which due to the recent removal of Resque in favor of sidekiq breaks gitlab in passenger
Diffstat (limited to 'config')
-rw-r--r--config/initializers/passenger_fix.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/config/initializers/passenger_fix.rb b/config/initializers/passenger_fix.rb
deleted file mode 100644
index 3a88eb10a36..00000000000
--- a/config/initializers/passenger_fix.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-if defined?(PhusionPassenger)
-
- # When you're using Passenger with smart-lv2 (default) or smart spawn method,
- # Resque doesn't recognize that it has been forked and should re-establish
- # Redis connection. You can see this error message in log:
- # Redis::InheritedError, Tried to use a connection from a child process
- # without reconnecting. You need to reconnect to Redis after forking.
- #
- # This solution is based on
- # https://github.com/redis/redis-rb/wiki/redis-rb-on-Phusion-Passenger
- #
- PhusionPassenger.on_event(:starting_worker_process) do |forked|
- # if we're in smart spawning mode, reconnect to Redis
- Resque.redis.client.reconnect if forked
- end
-end