From c5cbe7128fa23d7524fb13e47a067abd53f3e093 Mon Sep 17 00:00:00 2001 From: lovelyzhang Date: Thu, 22 Dec 2016 20:10:31 +0800 Subject: [PATCH] push to heroku: --- .idea/workspace.xml | 82 +++++++++++-- Gemfile | 6 +- Gemfile.lock | 2 + log/development.log | 285 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 360 insertions(+), 15 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 47e4f24..c0fd5a4 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,10 @@ - + + + + @@ -19,19 +22,43 @@ + + + + - + - - + + + + + + + + + + + + + + + + + + + + + + @@ -42,12 +69,27 @@ + + + true DEFINITION_ORDER + + - - + @@ -288,18 +330,18 @@ + - + + - - @@ -318,10 +360,26 @@ + + + + + + + + - - + + + + + + + + + + diff --git a/Gemfile b/Gemfile index 67af890..daf9686 100644 --- a/Gemfile +++ b/Gemfile @@ -44,9 +44,9 @@ group :development do gem 'spring-watcher-listen', '~> 2.0.0' end -# group :production do -# gem 'pg','~> 0.18.4' -# end +group :production do + gem 'pg','~> 0.18.4' +end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Gemfile.lock b/Gemfile.lock index 92c9ada..dc72978 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -81,6 +81,7 @@ GEM nio4r (1.2.1) nokogiri (1.6.8.1) mini_portile2 (~> 2.1.0) + pg (0.18.4) puma (3.6.2) rack (2.0.1) rack-test (0.6.3) @@ -161,6 +162,7 @@ DEPENDENCIES jbuilder (~> 2.5) jquery-rails listen (~> 3.0.5) + pg (~> 0.18.4) puma (~> 3.0) rails (~> 5.0.0, >= 5.0.0.1) sass-rails (~> 5.0) diff --git a/log/development.log b/log/development.log index 8ba7ccb..fd796f5 100644 --- a/log/development.log +++ b/log/development.log @@ -171919,3 +171919,288 @@ Processing by ChatController#notify as JSON Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:21 +0800 + ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations" +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 43ms (Views: 0.3ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:22 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:31 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/" for 127.0.0.1 at 2016-12-22 20:07:34 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 7ms (ActiveRecord: 0.1ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 20:07:34 +0800 +Processing by MainController#show as HTML + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered main/main.html.erb within layouts/application (5.1ms) + Rendered layouts/_title.html.erb (0.5ms) + Rendered layouts/_refer.html.erb (0.6ms) +Completed 200 OK in 44ms (Views: 18.2ms | ActiveRecord: 0.9ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:34 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 20:07:38 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (3.1ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 17ms (Views: 10.9ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:39 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/microposts" for 127.0.0.1 at 2016-12-22 20:07:41 +0800 +Processing by MicroPostsController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "micro_posts" WHERE "micro_posts"."user_id" = ? [["user_id", 1]] + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."user_id" = ? ORDER BY "micro_posts"."post_time" DESC [["user_id", 1]] + Rendering micro_posts/show.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.7ms) + Rendered micro_posts/show.html.erb within layouts/application (4.5ms) + Rendered layouts/_title.html.erb (0.5ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 19ms (Views: 13.7ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:41 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms) + + +Started GET "/chat" for 127.0.0.1 at 2016-12-22 20:07:44 +0800 +Processing by ChatController#index as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Message Load (0.2ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", true]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.2ms) SELECT DISTINCT "messages"."recieve_user" FROM "messages" WHERE "messages"."send_user" = ? [["send_user", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + Message Load (0.1ms) SELECT DISTINCT "messages"."send_user" FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] + Rendering chat/index.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.4ms) + Rendered chat/index.html.erb within layouts/application (3.0ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 28ms (Views: 12.3ms | ActiveRecord: 1.0ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:45 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/logout" for 127.0.0.1 at 2016-12-22 20:07:47 +0800 +Processing by LoginController#logout as HTML +Redirected to http://localhost:3000/login +Completed 302 Found in 1ms (ActiveRecord: 0.0ms) + + +Started GET "/login" for 127.0.0.1 at 2016-12-22 20:07:47 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ? [["LIMIT", 1]] + Rendering login/init.html.erb within layouts/application + Rendered login/init.html.erb within layouts/application (1.5ms) + Rendered layouts/_title.html.erb (0.4ms) + Rendered layouts/_refer.html.erb (0.4ms) +Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.1ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:07:51 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.3ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/comments?micropost_id=4" for 127.0.0.1 at 2016-12-22 20:07:52 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"4"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 4], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 4], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 4]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 25ms (Views: 0.3ms | ActiveRecord: 0.9ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 20:07:55 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.2ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.6ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 20:07:56 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:01 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/" for 127.0.0.1 at 2016-12-22 20:08:06 +0800 +Processing by LoginController#init as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ? [["LIMIT", 1]] + Rendering login/init.html.erb within layouts/application + Rendered login/init.html.erb within layouts/application (1.0ms) + Rendered layouts/_title.html.erb (0.3ms) + Rendered layouts/_refer.html.erb (0.5ms) +Completed 200 OK in 9ms (Views: 8.4ms | ActiveRecord: 0.1ms) + + +Started POST "/login?method=post" for 127.0.0.1 at 2016-12-22 20:08:15 +0800 +Processing by LoginController#login as HTML + Parameters: {"utf8"=>"✓", "authenticity_token"=>"T81+EmjZeu9W8A1Hukn6O5y3AFgGGhL4eFmknQrqBksHmkXJE06xruCVzsngOGOL4MOFPPWzDItfoYIcVDrijg==", "email"=>"zhangyu@163.com", "password"=>"[FILTERED]", "method"=>"post"} + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ? [["email", "zhangyu@163.com"], ["LIMIT", 1]] +Redirected to http://localhost:3000/main +Completed 302 Found in 68ms (ActiveRecord: 0.1ms) + + +Started GET "/main" for 127.0.0.1 at 2016-12-22 20:08:15 +0800 +Processing by MainController#show as HTML + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "micro_posts" LIMIT ? OFFSET ?) subquery_for_count [["LIMIT", 20], ["OFFSET", 0]] + MicroPost Load (0.2ms) SELECT "micro_posts".* FROM "micro_posts" ORDER BY "micro_posts"."post_time" DESC LIMIT ? OFFSET ? [["LIMIT", 20], ["OFFSET", 0]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 2], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] + Rendering main/main.html.erb within layouts/application + Rendered layouts/_nav.html.erb (0.3ms) + Rendered main/main.html.erb within layouts/application (2.5ms) + Rendered layouts/_title.html.erb (0.2ms) + Rendered layouts/_refer.html.erb (0.3ms) +Completed 200 OK in 14ms (Views: 9.3ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:15 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.2ms) + + +Started GET "/comments?micropost_id=5" for 127.0.0.1 at 2016-12-22 20:08:17 +0800 +Processing by CommentsController#get as JSON + Parameters: {"micropost_id"=>"5"} + MicroPost Load (0.1ms) SELECT "micro_posts".* FROM "micro_posts" WHERE "micro_posts"."id" = ? LIMIT ? [["id", 5], ["LIMIT", 1]] + Comment Exists (0.1ms) SELECT 1 AS one FROM "comments" WHERE "comments"."micro_post_id" = ? LIMIT ? [["micro_post_id", 5], ["LIMIT", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."micro_post_id" = ? [["micro_post_id", 5]] + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:26 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:36 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:46 +0800 +Processing by ChatController#notify as JSON + User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:08:56 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:09:06 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.2ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms) + + +Started GET "/notify" for 127.0.0.1 at 2016-12-22 20:09:16 +0800 +Processing by ChatController#notify as JSON + User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] +  (0.1ms) SELECT COUNT(*) FROM "messages" WHERE "messages"."recieve_user" = ? AND "messages"."readed" = ? [["recieve_user", 1], ["readed", false]] +Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms) + +