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ć?
Lypa
June 10, 2013, 11:34am
2
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
Lypa
June 10, 2013, 11:57am
4
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:in
index’
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:in
index’
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:in
index’[/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
sbl
June 10, 2013, 12:27pm
6
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
gotar
June 10, 2013, 1:25pm
8
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 ;]
koprad
June 10, 2013, 2:19pm
9
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?
konole
June 10, 2013, 8:06pm
11
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:in
call’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:in
block 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:in
call’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:in
call’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in
call’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:in
call’
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:in
process_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:in
main_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:in
disable_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:in
call’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:in
block 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:in
call’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:in
call’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in
call’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:in
call’
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:in
process_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:in
main_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:in
disable_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:in
call’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:in
block 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:in
call’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:in
call’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in
call’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:in
call’
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:in
process_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:in
main_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:in
disable_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:in
call’
railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:in
block 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:in
call’
actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:in
call’
rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in
call’
rack (1.4.5) lib/rack/lock.rb:15:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:in
forward’
rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in
lookup’
rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in
call’
railties (3.2.13) lib/rails/engine.rb:479:in call' railties (3.2.13) lib/rails/application.rb:223:in
call’
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:in
process_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:in
main_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:in
disable_interruptions’
passenger (4.0.0.rc6) lib/phusion_passenger/request_handler.rb:453:in `block (3 levels) in start_threads’[/code]