aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/main/index.haml2
-rw-r--r--client/worker.rb4
-rw-r--r--config/unicorn.rb2
3 files changed, 6 insertions, 2 deletions
diff --git a/app/views/main/index.haml b/app/views/main/index.haml
index d6110f5..c4ca3b0 100644
--- a/app/views/main/index.haml
+++ b/app/views/main/index.haml
@@ -3,7 +3,7 @@
%p
Favstar クローンです。UserStreams つかってます。
= link_to "@KOBA789", "https://twitter.com/KOBA789"
- さんにサーバーを貸していただけることになりました…!!ありがとうございます!
+ さんにサーバーを貸していただけることになりました…!!ありがとうございます!ありがとうございます!!!
%strong まだ開発途中段階のものですがとりあえず動いています。登録後接続まで最大30分かかります。
%strong 動作のテスト中ですので、途中で登録をうちきったりあまりにふぁぼられ・ふぁぼりが多いユーザーの登録を削除する可能性もあります。
%div
diff --git a/client/worker.rb b/client/worker.rb
index 7de9805..d9230ce 100644
--- a/client/worker.rb
+++ b/client/worker.rb
@@ -219,6 +219,10 @@ class Worker
$logger.info("Connected(##{client.user_id})")
rescue ::Yajl::ParseError
$logger.error("JSON Parse Error: #{json}")
+ rescue TweetStream::ReconnectError
+ $logger.warn("TweetStream::ReconnectError: #{client.row_id}/#{client.user_id}")
+ client.stop_stream
+ @clients.delete(client)
end
end
end
diff --git a/config/unicorn.rb b/config/unicorn.rb
index 27b275d..b8e045a 100644
--- a/config/unicorn.rb
+++ b/config/unicorn.rb
@@ -1,4 +1,4 @@
-worker_processes 4
+worker_processes 8
working_directory File.expand_path("../../", __FILE__)