push to heroku:

This commit is contained in:
lovelyzhang 2016-12-22 20:10:31 +08:00
parent 9a221afbb0
commit c5cbe7128f
4 changed files with 360 additions and 15 deletions

View File

@ -2,7 +2,10 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="4563abd9-0b8d-4853-8d0b-b3f103aec2dd" name="Default" comment="">
<change type="DELETED" beforePath="$PROJECT_DIR$/test.txt" afterPath="" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/log/development.log" afterPath="$PROJECT_DIR$/log/development.log" />
</list>
<ignored path="guoren.iws" />
<ignored path=".idea/workspace.xml" />
@ -19,19 +22,43 @@
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/guoren@Development__guoren.coverage" NAME="Development: guoren Coverage Results" MODIFIED="1482408439464" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="guoren" />
</component>
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
<component name="FavoritesManager">
<favorites_list name="guoren" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="Gemfile.lock" pinned="false" current-in-tab="true">
<file leaf-file-name="Gemfile.lock" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Gemfile.lock">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="90" column="13" selection-start-line="90" selection-start-column="12" selection-end-line="90" selection-end-column="13" />
<state relative-caret-position="440">
<caret line="178" column="0" selection-start-line="178" selection-start-column="0" selection-end-line="178" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/Gemfile">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="290">
<caret line="46" column="0" selection-start-line="46" selection-start-column="0" selection-end-line="48" selection-end-column="3" />
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="Gemfile.lock.bak" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Gemfile.lock.bak">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="32" selection-start-line="0" selection-start-column="0" selection-end-line="178" selection-end-column="0" />
<folding />
</state>
</provider>
@ -42,12 +69,27 @@
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/Gemfile.lock" />
<option value="$PROJECT_DIR$/Gemfile" />
</list>
</option>
</component>
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
<component name="JsGulpfileManager">
<detection-done>true</detection-done>
<sorting>DEFINITION_ORDER</sorting>
</component>
<component name="LogFilters">
<option name="FILTER_ERRORS" value="false" />
<option name="FILTER_WARNINGS" value="false" />
<option name="FILTER_INFO" value="true" />
<option name="FILTER_DEBUG" value="true" />
<option name="CUSTOM_FILTER" />
</component>
<component name="ProjectFrameBounds">
<option name="y" value="23" />
<option name="width" value="1440" />
@ -271,16 +313,16 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1482408182630</updated>
<workItem from="1482408184281" duration="75000" />
<workItem from="1482408184281" duration="430000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="75000" />
<option name="totallyTimeSpent" value="430000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="23" width="1440" height="808" extended-state="6" />
<editor active="false" />
<editor active="true" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24964234" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
@ -288,18 +330,18 @@
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32884097" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32884097" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32884097" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="Vcs.Log.UiProperties">
@ -318,10 +360,26 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/Gemfile.lock.bak">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="270">
<caret line="18" column="32" selection-start-line="0" selection-start-column="0" selection-end-line="178" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Gemfile.lock">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="147">
<caret line="90" column="13" selection-start-line="90" selection-start-column="12" selection-end-line="90" selection-end-column="13" />
<state relative-caret-position="440">
<caret line="178" column="0" selection-start-line="178" selection-start-column="0" selection-end-line="178" selection-end-column="0" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Gemfile">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="290">
<caret line="46" column="0" selection-start-line="46" selection-start-column="0" selection-end-line="48" selection-end-column="3" />
<folding />
</state>
</provider>

View File

@ -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]

View File

@ -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)

View File

@ -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)