From 2bfcff5ddc3b4d7ba11c146f08e29644657708f2 Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 11 Aug 2021 16:12:37 +0800 Subject: [PATCH] fix bug --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 765612b..c962550 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,4 +1,4 @@ -if File.basename($0) != 'rake' +if ENV['worker_num']=='0' && File.basename($0) != 'rake' Thread.new do update_route_interval = RulingBusSetting.first.update_route_interval while 1