Produkcja nginx

Mam pytanko.
Testuje railsy i uzyłem gemu “twitter-bootstrap-rails”
na developerce ładnie śmiga natomiast na produkcji następujące błedy z nginxa

[ 2013-06-10 12:49:46.9794 22045/7fc125a64700 Pool2/SmartSpawner.h:300 ]: Preloader for /home/marko/ror2/test12 started on PID 22118, listening on unix:/tmp/passenger.1.0.22041/generation-0/backends/preloader.22118 [ 2013-06-10 12:51:40.7780 22311/7f768f270740 agents/HelperAgent/Main.cpp:554 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.22307/generation-0/request.socket [ 2013-06-10 12:51:40.7994 22316/7fbcb0fda740 agents/LoggingAgent/Main.cpp:272 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.22307/generation-0/logging.socket [ 2013-06-10 12:51:44.7290 22311/7f768f18a700 Pool2/Spawner.h:739 ]: [App 22332 stdout] [ 2013-06-10 12:51:46.6491 22311/7f768f18a700 Pool2/SmartSpawner.h:300 ]: Preloader for /home/marko/ror2/test12 started on PID 22332, listening on unix:/tmp/passenger.1.0.22307/generation-0/backends/preloader.22332
robiłem

rake assets:precompile

mo ze ktos się orientuje co jeszcze powinienem zrobić?

Przecież to nie są błędy.

to zapisy z error.log nginxa po wstawieniu bootstrapa.
development działa, produkcja wywala mi zapis z 404.html z public

Sprawdź w takim razie, co wywala w {ROOT}/log/production.log

dzieki za info nie znam jeszcze tego frameworka

prod.log

[code]Started GET “/posts” for 10.9.95.212 at 2013-06-10 14:18:41 +0200
Processing by PostsController#index as HTML
Rendered posts/index.html.erb within layouts/application (0.6ms)
Completed 500 Internal Server Error in 6ms

ActionView::Template::Error (images/apple-touch-icon-144x144-precomposed.png isn’t precompiled):
16:
17:
18:
19: <%= favicon_link_tag ‘images/apple-touch-icon-144x144-precomposed.png’, :rel => ‘apple-touch-icon-precomposed’, :type => ‘image/png’, :sizes => ‘144x144’ %>
20:
21:
22:
app/views/layouts/application.html.erb:19:in _app_views_layouts_application_html_erb__389383127422138307_32973040' app/controllers/posts_controller.rb:7:inindex’

Connecting to database specified by database.yml
Started GET “/posts” for 10.9.95.212 at 2013-06-10 14:19:19 +0200
Processing by PostsController#index as HTML
Rendered posts/index.html.erb within layouts/application (5.4ms)
Completed 500 Internal Server Error in 82ms

ActionView::Template::Error (images/apple-touch-icon-144x144-precomposed.png isn’t precompiled):
16:
17:
18:
19: <%= favicon_link_tag ‘images/apple-touch-icon-144x144-precomposed.png’, :rel => ‘apple-touch-icon-precomposed’, :type => ‘image/png’, :sizes => ‘144x144’ %>
20:
21:
22:
app/views/layouts/application.html.erb:19:in _app_views_layouts_application_html_erb__476655413348237515_24430360' app/controllers/posts_controller.rb:7:inindex’

Started GET “/posts” for 10.9.95.212 at 2013-06-10 14:19:20 +0200
Processing by PostsController#index as HTML
Rendered posts/index.html.erb within layouts/application (1.0ms)
Completed 500 Internal Server Error in 10ms

ActionView::Template::Error (images/apple-touch-icon-144x144-precomposed.png isn’t precompiled):
16:
17:
18:
19: <%= favicon_link_tag ‘images/apple-touch-icon-144x144-precomposed.png’, :rel => ‘apple-touch-icon-precomposed’, :type => ‘image/png’, :sizes => ‘144x144’ %>
20:
21:
22:
app/views/layouts/application.html.erb:19:in _app_views_layouts_application_html_erb__476655413348237515_24430360' app/controllers/posts_controller.rb:7:inindex’[/code]
chce do kompilacji jakieś png apple?
nie mam nic takiego na develop

użyłem :

rails 3.2.13 new test12
rails g scaffold Post name:string
dodałem bootstrapa

wywołaj z konsoli: rake assets:precompile

szczegóły:
http://guides.rubyonrails.org/asset_pipeline.html

[quote=sbl]wywołaj z konsoli: rake assets:precompile

szczegóły:
http://guides.rubyonrails.org/asset_pipeline.html[/quote]
juz to robiłem + restart nginxa

wywal z layout wszytskie te mobilne odwolania do apple, chyba z 5-8 linijek i po bolu. Jak nie uzywasz, jak nie wiesz po co one i do czego to mozesz smialo wywalic ;]

uzyskałem ten sam "błąd ". Tak jak pisze gotar usuń z app/views/layouts w application.html zapisy favicon_link_tagów appla.
Zapisy te wprowadziła Ci komenda:

rails g bootstrap:layout application

dzieki;

Czy zastosowana baza danych ma tutaj wpływ na działanie gemów? Po waszych podpowiedziach na postgree śmiga ale jak zamieniam na mongo bootstrap leży. w logach woła o niezdefiniowanej zmiennej lokalnej ‘bootstrap_flash’ ActionView::Template::Error. Podejrzewam, że to efekt wywalenia require “rails/all” dla mongo może ktos podpowiedziec co trzeba dołozć z requre dla mongo?

Utwórz w app/helpers np bootstrap_flash_helper.rb i wklej do niego kod:

https://raw.github.com/seyhunak/twitter-bootstrap-rails/master/app/helpers/bootstrap_flash_helper.rb

no właśnie zastanawiałem się nad helperami xd

oczywiscie działa ale znowu zonk :0

wracam do poczatku ale z mongo
na developie myka na produkcji błąd:

[code]Started GET “/” for 10.9.95.1 at 2013-06-10 22:42:33 +0200
Processing by StaticController#index as HTML
Rendered static/index.html.erb within layouts/application (1.8ms)
Completed 200 OK in 9ms (Views: 8.7ms)
Started GET “/” for 10.9.95.1 at 2013-06-10 22:42:33 +0200
Processing by StaticController#index as HTML
Rendered static/index.html.erb within layouts/application (0.3ms)
Completed 200 OK in 2ms (Views: 1.9ms)
Started GET “/” for 10.9.95.1 at 2013-06-10 22:42:33 +0200
Processing by StaticController#index as HTML
Rendered static/index.html.erb within layouts/application (0.6ms)
Completed 200 OK in 5ms (Views: 4.3ms)
Started GET “/stylesheets/application.css” for 10.9.95.1 at 2013-06-10 22:42:33 +0200

ActionController::RoutingError (No route matches [GET] “/stylesheets/application.css”):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call’
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall’
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.0.rc6) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:135:in accept_and_process_next_request' passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:106:inmain_loop’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:458:in block (4 levels) in start_threads' passenger (4.0.0.rc6) lib/phusion_passenger/utils/robust_interruption.rb:102:indisable_interruptions’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads’

Started GET “/javascripts/application.js” for 10.9.95.1 at 2013-06-10 22:42:33 +0200

ActionController::RoutingError (No route matches [GET] “/javascripts/application.js”):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call’
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall’
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.0.rc6) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:135:in accept_and_process_next_request' passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:106:inmain_loop’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:458:in block (4 levels) in start_threads' passenger (4.0.0.rc6) lib/phusion_passenger/utils/robust_interruption.rb:102:indisable_interruptions’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads’

Started GET “/products” for 10.9.95.1 at 2013-06-10 22:42:35 +0200
Processing by ProductsController#index as HTML
Rendered products/index.html.erb within layouts/application (80.9ms)
Completed 200 OK in 88ms (Views: 86.5ms)
Started GET “/stylesheets/application.css” for 10.9.95.1 at 2013-06-10 22:42:35 +0200

ActionController::RoutingError (No route matches [GET] “/stylesheets/application.css”):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call’
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall’
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.0.rc6) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:135:in accept_and_process_next_request' passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:106:inmain_loop’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:458:in block (4 levels) in start_threads' passenger (4.0.0.rc6) lib/phusion_passenger/utils/robust_interruption.rb:102:indisable_interruptions’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads’

Started GET “/javascripts/application.js” for 10.9.95.1 at 2013-06-10 22:42:35 +0200

ActionController::RoutingError (No route matches [GET] “/javascripts/application.js”):
actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call’
activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:incall’
railties (3.2.13) lib/rails/railtie/configurable.rb:30:in method_missing' passenger (4.0.0.rc6) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:135:in accept_and_process_next_request' passenger (4.0.0.rc6) lib/phusion_passenger/request_handler/thread_handler.rb:106:inmain_loop’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:458:in block (4 levels) in start_threads' passenger (4.0.0.rc6) lib/phusion_passenger/utils/robust_interruption.rb:102:indisable_interruptions’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads’[/code]