Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jul 9, 2020
1 parent b66b404 commit c1fd68f
Show file tree
Hide file tree
Showing 6 changed files with 137 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# !/storage/.keep

# # /public/assets
# # .byebug_history
# .byebug_history

# # Ignore master key for decrypting credentials and more.
# # /config/master.key
Expand Down
Binary file modified db/development.sqlite3
Binary file not shown.
136 changes: 136 additions & 0 deletions log/development.log
Original file line number Diff line number Diff line change
Expand Up @@ -105217,3 +105217,139 @@ Started GET "/cable/" [WebSocket] for ::1 at 2020-07-09 15:54:16 +0700
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
ProductsChannel is transmitting the subscription confirmation
ProductsChannel is streaming from products
Finished "/cable/" [WebSocket] for ::1 at 2020-07-09 16:16:54 +0700
ProductsChannel stopped streaming from products
Started GET "/" for ::1 at 2020-07-09 17:56:13 +0700
 (0.6ms) SELECT sqlite_version(*)
 (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
Processing by StoreController#index as HTML
 (0.0ms) begin transaction
↳ app/controllers/concerns/current_cart.rb:16:in `rescue in set_cart'
Cart Create (0.8ms) INSERT INTO "carts" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2020-07-09 10:56:13.751277"], ["updated_at", "2020-07-09 10:56:13.751277"]]
↳ app/controllers/concerns/current_cart.rb:16:in `rescue in set_cart'
 (5.0ms) commit transaction
↳ app/controllers/concerns/current_cart.rb:16:in `rescue in set_cart'
Rendering store/index.html.erb within layouts/application
Product Load (0.4ms) SELECT DISTINCT "products".* FROM "products" LIMIT ? OFFSET ? [["LIMIT", 10], ["OFFSET", 0]]
↳ app/views/store/index.html.erb:16
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/query-3f93a2cce09f9b1b9e570407809563c8-10-20200707102100813152 (11.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/1-20200629062101838469 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/1-20200629062101838469 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/2-20200707051809596004 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/2-20200707051809596004 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/3-20200629062133442280 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/3-20200629062133442280 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/4-20200630054422047079 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/4-20200630054422047079 (0.3ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/5-20200707100843786673 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/5-20200707100843786673 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/106-20200707102100784379 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/106-20200707102100784379 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/107-20200707102100791025 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/107-20200707102100791025 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/108-20200707102100795040 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/108-20200707102100795040 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/109-20200707102100799359 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/109-20200707102100799359 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/110-20200707102100813152 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/110-20200707102100813152 (0.2ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/query-3f93a2cce09f9b1b9e570407809563c8-10-20200707102100813152 (0.3ms)
 (0.8ms) SELECT COUNT(DISTINCT "products"."id") FROM "products"
↳ app/views/store/index.html.erb:36
Rendered store/index.html.erb within layouts/application (Duration: 91.0ms | Allocations: 34553)
[Webpacker] Everything's up-to-date. Nothing to do
[Webpacker] Everything's up-to-date. Nothing to do
LineItem Exists? (0.1ms) SELECT 1 AS one FROM "line_items" WHERE "line_items"."cart_id" = ? LIMIT ? [["cart_id", 87], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:34
Completed 200 OK in 155ms (Views: 117.9ms | ActiveRecord: 8.7ms | Allocations: 59485)


Started GET "/cable" for ::1 at 2020-07-09 17:56:14 +0700
Started GET "/cable/" [WebSocket] for ::1 at 2020-07-09 17:56:14 +0700
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
ProductsChannel is transmitting the subscription confirmation
ProductsChannel is streaming from products
Started GET "/?page=4" for ::1 at 2020-07-09 17:56:20 +0700
Processing by StoreController#index as HTML
Parameters: {"page"=>"4"}
Cart Load (0.3ms) SELECT "carts".* FROM "carts" WHERE "carts"."id" = ? LIMIT ? [["id", 87], ["LIMIT", 1]]
↳ app/controllers/concerns/current_cart.rb:14:in `set_cart'
Rendering store/index.html.erb within layouts/application
Product Load (0.2ms) SELECT DISTINCT "products".* FROM "products" LIMIT ? OFFSET ? [["LIMIT", 10], ["OFFSET", 30]]
↳ app/views/store/index.html.erb:16
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/query-ef866b4b82442e97a3bdea677996fa76-10-20200707102100893489 (2.9ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/131-20200707102100870075 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/131-20200707102100870075 (0.2ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/132-20200707102100872600 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/132-20200707102100872600 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/133-20200707102100875233 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/133-20200707102100875233 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/134-20200707102100877873 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/134-20200707102100877873 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/135-20200707102100880405 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/135-20200707102100880405 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/136-20200707102100882852 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/136-20200707102100882852 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/137-20200707102100885515 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/137-20200707102100885515 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/138-20200707102100888284 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/138-20200707102100888284 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/139-20200707102100890910 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/139-20200707102100890910 (0.1ms)
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/140-20200707102100893489 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/140-20200707102100893489 (0.1ms)
Write fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/query-ef866b4b82442e97a3bdea677996fa76-10-20200707102100893489 (0.5ms)
 (0.2ms) SELECT COUNT(DISTINCT "products"."id") FROM "products"
↳ app/views/store/index.html.erb:36
Rendered store/index.html.erb within layouts/application (Duration: 30.3ms | Allocations: 15617)
[Webpacker] Everything's up-to-date. Nothing to do
[Webpacker] Everything's up-to-date. Nothing to do
LineItem Exists? (0.2ms) SELECT 1 AS one FROM "line_items" WHERE "line_items"."cart_id" = ? LIMIT ? [["cart_id", 87], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:34
Completed 200 OK in 48ms (Views: 41.6ms | ActiveRecord: 0.8ms | Allocations: 25473)


Started GET "/products?q%5Btitle_cont%5D=&commit=Search" for ::1 at 2020-07-09 17:56:26 +0700
Processing by ProductsController#index as HTML
Parameters: {"q"=>{"title_cont"=>""}, "commit"=>"Search"}
User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IS NULL LIMIT ? [["LIMIT", 1]]
↳ app/controllers/application_controller.rb:9:in `authorize'
Redirected to http://localhost:3000/login
Filter chain halted as :authorize rendered or redirected
Completed 302 Found in 7ms (ActiveRecord: 0.7ms | Allocations: 2390)


Started GET "/login" for ::1 at 2020-07-09 17:56:26 +0700
Processing by SessionsController#new as HTML
Rendering sessions/new.html.erb within layouts/application
Rendered sessions/new.html.erb within layouts/application (Duration: 1.3ms | Allocations: 581)
[Webpacker] Everything's up-to-date. Nothing to do
[Webpacker] Everything's up-to-date. Nothing to do
Completed 200 OK in 15ms (Views: 12.6ms | ActiveRecord: 0.0ms | Allocations: 9806)


Finished "/cable/" [WebSocket] for ::1 at 2020-07-09 17:56:26 +0700
ProductsChannel stopped streaming from products
Started GET "/cable" for ::1 at 2020-07-09 17:56:26 +0700
Started GET "/cable/" [WebSocket] for ::1 at 2020-07-09 17:56:26 +0700
Successfully upgraded to WebSocket (REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)
ProductsChannel is transmitting the subscription confirmation
ProductsChannel is streaming from products
Started GET "/" for ::1 at 2020-07-09 17:56:59 +0700
Processing by StoreController#index as HTML
Cart Load (0.1ms) SELECT "carts".* FROM "carts" WHERE "carts"."id" = ? LIMIT ? [["id", 87], ["LIMIT", 1]]
↳ app/controllers/concerns/current_cart.rb:14:in `set_cart'
Rendering store/index.html.erb within layouts/application
Product Load (0.1ms) SELECT DISTINCT "products".* FROM "products" LIMIT ? OFFSET ? [["LIMIT", 10], ["OFFSET", 0]]
↳ app/views/store/index.html.erb:16
Read fragment views/store/index:6523eee525f297841bba39ba7eb9735c/products/query-3f93a2cce09f9b1b9e570407809563c8-10-20200707102100813152 (2.6ms)
 (0.2ms) SELECT COUNT(DISTINCT "products"."id") FROM "products"
↳ app/views/store/index.html.erb:36
Rendered store/index.html.erb within layouts/application (Duration: 8.6ms | Allocations: 5189)
[Webpacker] Everything's up-to-date. Nothing to do
[Webpacker] Everything's up-to-date. Nothing to do
LineItem Exists? (0.2ms) SELECT 1 AS one FROM "line_items" WHERE "line_items"."cart_id" = ? LIMIT ? [["cart_id", 87], ["LIMIT", 1]]
↳ app/views/layouts/application.html.erb:34
Completed 200 OK in 27ms (Views: 23.7ms | ActiveRecord: 0.6ms | Allocations: 14898)


Binary file modified tmp/cache/bootsnap-compile-cache/55/b42934ec4209f4
Binary file not shown.
Binary file modified tmp/cache/bootsnap-compile-cache/60/cd6046bb6f1eef
Binary file not shown.
1 change: 0 additions & 1 deletion tmp/pids/server.pid

This file was deleted.

0 comments on commit c1fd68f

Please sign in to comment.