Skip to content

Instantly share code, notes, and snippets.

@wdiechmann
Created January 28, 2012 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wdiechmann/1692260 to your computer and use it in GitHub Desktop.
Save wdiechmann/1692260 to your computer and use it in GitHub Desktop.
cache: [GET /] miss - driving me crazy :(
==================== development mode ======================
every thing is dandy!
[rails 3] OX_ID=1 r s
=> Booting WEBrick
=> Rails 3.2.1 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-01-28 03:38:30] INFO WEBrick 1.3.1
[2012-01-28 03:38:30] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin11.1.0]
[2012-01-28 03:38:30] INFO WEBrick::HTTPServer#start: pid=29054 port=3000
Started GET "/login" for 127.0.0.1 at 2012-01-28 03:38:43 +0100
Processing by Users::SessionsController#new as HTML
Rendered users/shared/_links.erb (2.8ms)
Rendered users/sessions/new.html.erb within layouts/application (23.8ms)
Ox Load (0.2ms) SELECT `oxen`.* FROM `oxen` WHERE `oxen`.`id` = 1 LIMIT 1
Compiled bootstrap/bootstrap-alert.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-button.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-carousel.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-collapse.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-dropdown.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-modal.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-tooltip.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-popover.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-scrollspy.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-tab.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-transition.js (0ms) (pid 29054)
Compiled bootstrap/bootstrap-typeahead.js (0ms) (pid 29054)
Compiled bootstrap.js (297ms) (pid 29054)
Compiled bootstrap.css (956ms) (pid 29054)
Compiled application.css (967ms) (pid 29054)
Compiled jquery.js (53ms) (pid 29054)
Compiled jquery_ujs.js (0ms) (pid 29054)
Compiled abstract_actions.js (71ms) (pid 29054)
Compiled admin/roleables.js (0ms) (pid 29054)
Compiled admin/roles.js (0ms) (pid 29054)
Compiled admin/user_groups.js (4ms) (pid 29054)
Compiled admin/users.js (0ms) (pid 29054)
Compiled desktop/jquery.tablesorter.min.js (0ms) (pid 29054)
Compiled desktop.js (11ms) (pid 29054)
Compiled oxen.js (0ms) (pid 29054)
Compiled sessions.js (1ms) (pid 29054)
Compiled users/confirmations.js (0ms) (pid 29054)
Compiled users/passwords.js (0ms) (pid 29054)
Compiled users/registrations.js (0ms) (pid 29054)
Compiled users/sessions.js (0ms) (pid 29054)
Compiled users/unlocks.js (0ms) (pid 29054)
Compiled application.js (460ms) (pid 29054)
CACHE (0.0ms) SELECT `oxen`.* FROM `oxen` WHERE `oxen`.`id` = LIMIT 1
Rendered menu_items/_menu.haml (6.7ms)
Completed 200 OK in 1671ms (Views: 1640.9ms | ActiveRecord: 4.1ms)
Started GET "/assets/bootstrap.css?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap.css - 304 Not Modified (8ms)
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /application.css - 304 Not Modified (3ms)
Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /jquery.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-alert.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-alert.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-button.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-button.js - 304 Not Modified (5ms)
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /jquery_ujs.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-collapse.js - 304 Not Modified (2ms)
Started GET "/assets/bootstrap/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-carousel.js - 304 Not Modified (2ms)
Started GET "/assets/bootstrap/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-dropdown.js - 304 Not Modified (58ms)
Started GET "/assets/bootstrap/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-tooltip.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-modal.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-modal.js - 304 Not Modified (2ms)
Started GET "/assets/bootstrap/bootstrap-popover.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-popover.js - 304 Not Modified (4ms)
Started GET "/assets/bootstrap/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-scrollspy.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-tab.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-tab.js - 304 Not Modified (3ms)
Started GET "/assets/bootstrap/bootstrap-transition.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-transition.js - 304 Not Modified (8ms)
Started GET "/assets/bootstrap/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap/bootstrap-typeahead.js - 304 Not Modified (2ms)
Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /bootstrap.js - 304 Not Modified (15ms)
Started GET "/assets/abstract_actions.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /abstract_actions.js - 304 Not Modified (1ms)
Started GET "/assets/admin/roleables.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /admin/roleables.js - 304 Not Modified (1ms)
Started GET "/assets/admin/roles.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /admin/roles.js - 304 Not Modified (1ms)
Started GET "/assets/admin/user_groups.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /admin/user_groups.js - 304 Not Modified (1ms)
Started GET "/assets/admin/users.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /admin/users.js - 304 Not Modified (3ms)
Started GET "/assets/desktop/jquery.tablesorter.min.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /desktop/jquery.tablesorter.min.js - 304 Not Modified (2ms)
Started GET "/assets/desktop.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /desktop.js - 304 Not Modified (3ms)
Started GET "/assets/oxen.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /oxen.js - 304 Not Modified (1ms)
Started GET "/assets/sessions.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /sessions.js - 304 Not Modified (1ms)
Started GET "/assets/users/confirmations.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /users/confirmations.js - 304 Not Modified (3ms)
Started GET "/assets/users/passwords.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /users/passwords.js - 304 Not Modified (1ms)
Started GET "/assets/users/registrations.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /users/registrations.js - 304 Not Modified (1ms)
Started GET "/assets/users/sessions.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /users/sessions.js - 304 Not Modified (1ms)
Started GET "/assets/users/unlocks.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /users/unlocks.js - 304 Not Modified (2ms)
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-01-28 03:38:45 +0100
Served asset /application.js - 304 Not Modified (43ms)
Started POST "/login" for 127.0.0.1 at 2012-01-28 03:39:35 +0100
Processing by Users::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"C53aPWNPybm+P0PbFXQEBFH/hmIgHWrtST0c4fkuOuU=", "user"=>{"login"=>"oxen", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log ind"}
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE (users.ox_id='1') AND (lower(username) = 'oxen' OR lower(email) = 'oxen') LIMIT 1
(0.1ms) BEGIN
(0.2ms) COMMIT
(0.1ms) BEGIN
(0.3ms) UPDATE `users` SET `current_sign_in_at` = '2012-01-28 02:39:35', `sign_in_count` = 2, `updated_at` = '2012-01-28 02:39:35' WHERE `users`.`id` = 1
(0.6ms) COMMIT
Redirected to http://localhost:3000/
Completed 302 Found in 175ms (ActiveRecord: 0.0ms)
=============== switching to production mode =========================
In production I get the HTML but no CSS and no JS (on my Mac) and nothing at all on a Linux server (have tried both Apache and NGINX)
[rails 3] OX_ID=1 r s -e production
=> Booting WEBrick
=> Rails 3.2.1 application starting in production on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2012-01-28 03:42:54] INFO WEBrick 1.3.1
[2012-01-28 03:42:54] INFO ruby 1.9.2 (2011-07-09) [x86_64-darwin11.1.0]
[2012-01-28 03:42:54] INFO WEBrick::HTTPServer#start: pid=29117 port=3000
cache: [GET /] miss
cache: [GET /login] miss
cache: [GET /assets/application-d32a93ded9d2ad59fba5d1fbeffacfff.css] miss
cache: [GET /assets/application-c0d1f7a70438aec00e39a446439f6d0b.js] miss
^C[2012-01-28 03:43:28] INFO going to shutdown ...
[2012-01-28 03:43:29] INFO WEBrick::HTTPServer#start done.
Exiting
[rails 3] ls -la public/assets/application-d32a93ded9d2ad59fba5d1fbeffacfff.css
-rw-r--r-- 1 walther staff 66842 25 Jan 07:54 public/assets/application-d32a93ded9d2ad59fba5d1fbeffacfff.css
[rails 3] ls -la public/assets/application-c0d1f7a70438aec00e39a446439f6d0b.js
-rw-r--r-- 1 walther staff 133624 25 Jan 12:55 public/assets/application-c0d1f7a70438aec00e39a446439f6d0b.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment