mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Merge pull request #314 from zoff-music/fix/redis-load
Redis-load start issue fix
This commit is contained in:
		| @@ -12,8 +12,16 @@ pathThumbnails = __dirname; | ||||
| try { | ||||
|     var redis = require("redis"); | ||||
|     var client = redis.createClient({host: "localhost", port: 6379}); | ||||
|     client.quit(); | ||||
|     startClustered(true); | ||||
|     client.on("error", function (err) { | ||||
|         console.log("Couldn't connect to redis-server, assuming non-clustered run"); | ||||
|         num_processes = 1; | ||||
|         startClustered(false); | ||||
|         client.quit(); | ||||
|     }); | ||||
|     client.on("connect", function() { | ||||
|         startClustered(true); | ||||
|         client.quit(); | ||||
|     }); | ||||
| } catch(e) { | ||||
|     console.log("Couldn't connect to redis-server, assuming non-clustered run"); | ||||
|     num_processes = 1; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user