느린 뷰 렌더링의 원인 진단


80

이것이 언제 시작되었는지 확실하지 않지만 내 앱에서 이상한 일이 발생하고 있습니다 (개발 컴퓨터에서 로컬로 실행). 갑자기 다음과 같은 메시지가 표시됩니다.

Started GET "/" for 127.0.0.1 at 2013-03-10 12:10:24 +1300
Processing by PagesController#home as HTML
  Rendered pages/home.html.erb within layouts/application (2.4ms)
Completed 200 OK in 3242ms (Views: 3241.4ms | ActiveRecord: 0.0ms)

보시다시피 홈 페이지 (비교적 간단한 페이지)를로드하는 데 3 초가 걸립니다. ... 우리는 하드 페이지 새로 고침을 말하는 것이 아닙니다. 다른 페이지에서 "홈"링크를 다시 클릭하기 만하면됩니다.

여기서 시작해야 할 부분이 확실하지 않지만 이것은 내 application.rb입니다.

#config/boot.rb is loaded
require File.expand_path('../boot', __FILE__)

require 'rails/all'

if defined?(Bundler)
  Bundler.require(*Rails.groups(:assets => %w(development test)))
end

module Goodsounds
  class Application < Rails::Application
    config.encoding = "utf-8"
    config.filter_parameters += [:password]
    config.assets.initialize_on_precompile = false
    config.assets.enabled = true
    config.action_controller.assets_dir = "#{File.dirname(File.dirname(__FILE__))}/public"
    config.assets.version = '1.0'
    config.autoload_paths += Dir["#{Rails.root}/lib/modules"]
    config.assets.paths += Dir["#{Rails.root}/app/assets/fonts/*"]
    config.assets.precompile += %w( .svg .eot .woff .ttf ) 
  end
end

... 그리고 dev.rb :

Goodsounds::Application.configure do
  # Settings specified here will take precedence over those in config/application.rb
    Paperclip.options[:command_path] = "/usr/bin/"

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }

  config.action_mailer.raise_delivery_errors = true

  # set delivery method to :smtp, :sendmail or :test
  config.action_mailer.delivery_method = :smtp

  # these options are only needed if you choose smtp delivery

  config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }

  # In the development environment your application's code is reloaded on
  # every request. This slows down response time but is perfect for development
  # since you don't have to restart the web server when you make code changes.
  config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

  # Only use best-standards-support built into browsers
  config.action_dispatch.best_standards_support = :builtin

  # Raise exception on mass assignment protection for Active Record models
  config.active_re
cord.mass_assignment_sanitizer = :strict

  # Log the query plan for queries taking more than this (works
  # with SQLite, MySQL, and PostgreSQL)
  config.active_record.auto_explain_threshold_in_seconds = 0.5

  # Do not compress assets
  config.assets.compress = false

  # Expands the lines which load the assets
  config.assets.debug = true
end

편집하다:

좋아요, 여기에 새로운 유물에 대한 내용이 있습니다. 그래도 정말 도움이되지 않습니다. 이견있는 사람?

여기에 이미지 설명 입력

여기에 이미지 설명 입력

아 그리고 Chrome 타임 라인에서 배운 내용 :

Send Request - Details
Duration    0 (at 655 ms)
Resource    localhost
Request Method  GET

Receive Response - Details
Duration    0.043ms (at 4.17 s)
Resource    localhost
Status Code 200
MIME Type   text/html

Receive Data - Details
Duration    176.329ms (at 4.17 s)
Self Time   7.037ms
CPU Time    176.329ms
Aggregated Time 061.194ms114.664ms0.471ms0
Resource    localhost
Encoded Data Length 303 Bytes
Used Heap Size  29.1MB (+5.7 MB)

Finish Loading - Details
Duration    0 (at 4.35 s)
Resource    localhost

그건 그렇고 나는 터미널에서 무엇을 발견 할 수 있는지보기 위해 quiet_assets gem을 비활성화했습니다. 다시 .. 도움이되지 않습니다.

Started GET "/" for 127.0.0.1 at 2013-03-10 21:46:40 +1300
Processing by PagesController#home as HTML
  Rendered pages/home.html.erb within layouts/application (43.4ms)
Completed 200 OK in 3501ms (Views: 3480.9ms | ActiveRecord: 19.4ms)


Started GET "/assets/dataTables/jquery.dataTables.bootstrap.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.bootstrap.css - 304 Not Modified (11ms)


Started GET "/assets/chosen.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen.css - 304 Not Modified (5ms)


Started GET "/assets/select2.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /select2.css - 304 Not Modified (4ms)


Started GET "/assets/autocomplete.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /autocomplete.css - 304 Not Modified (1ms)


Started GET "/assets/branches.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /branches.css - 304 Not Modified (2ms)


Started GET "/assets/bubbles.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bubbles.css - 304 Not Modified (1ms)


Started GET "/assets/business_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /business_show.css - 304 Not Modified (1ms)


Started GET "/assets/chunkyfive_font.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chunkyfive_font.css - 304 Not Modified (1ms)


Started GET "/assets/consumer_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /consumer_show.css - 304 Not Modified (2ms)


Started GET "/assets/datatable_styling.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /datatable_styling.css - 304 Not Modified (1ms)


Started GET "/assets/datepicker.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /datepicker.css - 304 Not Modified (2ms)


Started GET "/assets/devise_links.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /devise_links.css - 304 Not Modified (1ms)


Started GET "/assets/dispenser_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dispenser_show.css - 304 Not Modified (1ms)


Started GET "/assets/fonts.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /fonts.css - 304 Not Modified (1ms)


Started GET "/assets/forms.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /forms.css - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails.css - 304 Not Modified (1ms)


Started GET "/assets/jquery-ui-1.10.0.custom.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery-ui-1.10.0.custom.css - 304 Not Modified (2ms)


Started GET "/assets/jumbotrons.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jumbotrons.css - 304 Not Modified (1ms)


Started GET "/assets/layout.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /layout.css - 304 Not Modified (1ms)


Started GET "/assets/open_sans.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /open_sans.css - 304 Not Modified (2ms)


Started GET "/assets/popover.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /popover.css - 304 Not Modified (1ms)


Started GET "/assets/reviews.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /reviews.css - 304 Not Modified (1ms)


Started GET "/assets/spinner.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /spinner.css - 304 Not Modified (2ms)


Started GET "/assets/style_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /style_show.css - 304 Not Modified (2ms)


Started GET "/assets/style_show_reviews.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /style_show_reviews.css - 304 Not Modified (2ms)


Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery.js - 304 Not Modified (3ms)


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery_ujs.js - 304 Not Modified (3ms)


Started GET "/assets/ui.custom.min.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /ui.custom.min.js - 304 Not Modified (1ms)


Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-transition.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-affix.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-alert.js - 304 Not Modified (4ms)


Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-button.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-carousel.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-collapse.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-dropdown.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-modal.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-scrollspy.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-tab.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-tooltip.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-popover.js - 304 Not Modified (52ms)


Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-typeahead.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap.js - 304 Not Modified (13ms)


Started GET "/assets/gmaps4rails/gmaps4rails.base.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.base.js - 304 Not Modified (1ms)


Started GET "/assets/gmaps4rails/gmaps4rails.bing.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.bing.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.googlemaps.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.googlemaps.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.mapquest.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.mapquest.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.openlayers.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.openlayers.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/addresspicker.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/addresspicker.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/browser_detect.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/browser_detect.js - 304 Not Modified (3ms)


Started GET "/assets/jqueryplugins/charts.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/charts.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/jquery.alphanumeric.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.alphanumeric.js - 304 Not Modified (1ms)


Started GET "/assets/jqueryplugins/jquery.formrestrict.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.formrestrict.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/jquery.lazyload.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.lazyload.js - 304 Not Modified (1ms)


Started GET "/assets/jqueryplugins/raty.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/raty.js - 304 Not Modified (2ms)


Started GET "/assets/dataTables/jquery.dataTables.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.js - 304 Not Modified (13ms)


Started GET "/assets/dataTables/jquery.dataTables.bootstrap.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.bootstrap.js - 304 Not Modified (63ms)


Started GET "/assets/lib/abstract-chosen.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /lib/abstract-chosen.js - 304 Not Modified (12ms)


Started GET "/assets/lib/select-parser.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /lib/select-parser.js - 304 Not Modified (12ms)


Started GET "/assets/chosen.jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen.jquery.js - 304 Not Modified (8ms)


Started GET "/assets/chosen-jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen-jquery.js - 304 Not Modified (9ms)


Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /select2.js - 304 Not Modified (7ms)


Started GET "/assets/highcharts.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /highcharts.js - 304 Not Modified (1ms)

그건 그렇고, reddit에 대한 제안에 따라 자산을 미리 컴파일하고 서버를 실행했습니다. 환상적인 속도보기 :

Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (1.1ms)
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)

이것이 도움을 제공하는지 확실하지 않지만 스택의 두 코드 줄 사이에 주요 지연이 발생합니다.

From: /home/funkdified/.rvm/gems/ruby-1.9.3-p392@goodsounds/gems/actionpack-3.2.13.rc1/lib/action_controller/metal/implicit_render.rb @ line 5 ActionController::ImplicitRender#send_action:

    3: def send_action(method, *args)
    4:   ret = super
 => 5:   default_render unless response_body
    6:   ret
    7: end

[2] pry(#<PagesController>)> next

주요 지연

From: /home/funkdified/.rvm/gems/ruby-1.9.3-p392@goodsounds/gems/actionpack-3.2.13.rc1/lib/action_controller/metal/implicit_render.rb @ line 6 ActionController::ImplicitRender#send_action:

    3: def send_action(method, *args)
    4:   ret = super
    5:   default_render unless response_body
 => 6:   ret
    7: end

여기에서 추측하지만 아마도 미리 컴파일되지 않은 자바 스크립트 또는 CSS를로드하고있을 수 있습니다. 홈 뷰와 레이아웃을 공유하거나 문제가 있다고 생각하는 최소한의 스 니펫을 공유 할 수 있습니까?
foklepoint 2013 년

과도한 양의 HTML을 생성하고 있습니까? 페이지 크기에서 2 차로 표시되었던보기 시간입니다. 뷰 템플릿을 평가하는 동안 각 연결 중에 부분 페이지를 포함하는 문자열이 복사되었습니다.
joshuanapoli

많지 않습니다. 아마도 200 줄의 html? 크기를 어떻게 정량화 할 수 있습니까?
Abram 2013 년

요청 보내기와 응답 받기 사이에 큰 차이가 있지만, 안타깝게도 Chrome 타임 라인과 New Relic이 원인을 알려주지 않습니다. 서버가 자세한 정보를 제공하도록 강제하는 방법이 있습니까?
아브람

흠, "mysite.local"대 "mysite.localhost"와 같은 / etc / hosts에 무언가를 정의 했습니까? 나는 보통 내가 개발할 때 후자를 정의 할 것이다. 어떤 이유로 최근에 저는 이전의 "mysite.local"방식으로 앱을 실행하기로 결정했으며 페이지로드 당 3-5 초가 걸렸습니다. "mysite.localhost"로 다시 변경되었고로드하는 데 몇 초 만에 정상으로 돌아갔습니다.
jemminger 2013 년

답변:


121

좋아, 나는 그것을 알아 냈다 (마침내). 내 실제 자산을 변경하지 않고 이제 이것이 개발임을 알 수 있습니다.

Started GET "/" for 127.0.0.1 at 2013-03-11 23:14:33 +1300
Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (1.3ms)

지연은 config.assets.debug = truedevelopment.rb 내부 에서 발생한 것으로 밝혀졌습니다 . 이를 설정 false하면 문제가 해결됩니다.

Rails 핵심 팀 이 기본적으로이 기능을 끄는 것에 대해 토론 했지만 아이디어에 반대하는 것 같습니다. 앞으로 나는 그들이 사용자들에게 상당한 지연 가능성을 알려주기 위해 development.rb의 코멘트 섹션에 무언가를 넣는 것을보고 싶습니다.

다음을 제안하겠습니다.

# Expands the lines which load the assets 
# May cause significant delays in view rendering

좋아, 그들은 내가 중얼 거리는 것을 들었고 레일을 업데이트했다 !


1
프로젝트에 적합하다면 turbolinks ( github.com/rails/turbolinks ) 사용을 고려할 수 있습니다 . 자산이 첫 번째 페이지로드시에만로드되고 자산 디버깅의 이점을 유지하므로 문제가 완화 될 수 있습니다.
ybart 2013 년

2
이것은 확실히 도움이되었습니다. 그러나 작은 수정 : 문제는 실제로 'config.assets.debug = true'로 인해 발생하고 false로 변경하면 문제가 해결됩니다.
Ken Fehling 2014 년

1
@Abram 공유해 주셔서 감사합니다. 이것에 대해 잠시 머리를 긁적입니다.
앤더스

1
감사합니다 Abram. 나는 약 6 개월 동안이 문제가 있었다 ... :)
yaru

1
이것은 내 정확한 문제였습니다. CKE가 내 렌더링을 죽였습니다. 첫 페이지로드시 60 초 이상. 그런 간단한 수정.
DNorthrup

34

Rails 4.1 이상에서도 동일한 문제가 발생했습니다. Abram의 대답은 부분적으로 만 완성되었습니다.

나갈 수 config.assets.debug = true있지만 새로운 자산 확인 기능을 비활성화해야합니다.

# Adds additional error checking when serving assets at runtime.
# Checks for improperly declared sprockets dependencies.
# Raises helpful error messages.
config.assets.raise_runtime_errors = false

config.assets.debug비활성화 된 솔루션은 자산을 한 번 컴파일하고 자산을 한 번 확인하기 때문에 작동합니다. 자산 검증은 대부분의 시간을 소비하는 곳입니다.


antulik,이 문제를 해결할 수 있습니까? 귀하의 솔루션을 시도했지만 도움이되지 않았습니다. 내 앱은 예전에는 빠르지 만 최근에는 개발 속도가 매우 느려졌습니다. 때로는 응답을 얻기 위해 최대 5-6 초가 걸립니다. 90 % 이상이 앱 / 레이아웃을 렌더링하고 있습니다. stackoverflow.com/questions/35006964/weird-logs-in-rails4
숀 넘는

아, 위의 해결책으로 해결했습니다. 당신은 작동하지 않았지만 이유를 모릅니다. 그래도 여기에 한 가지 질문이 있습니다. 내 개발 환경 응답이 꽤 빨랐고 며칠 전 갑자기 매우 느려졌습니다. config.assets.debug를 false로 설정하면 내 문제가 해결되었지만 왜이 문제가 갑자기 발생하는지 짐작할 수 있습니까? 나는 이것이 느린 프로세스라고 생각하므로 전환 없이이 문제가 있으면 코드에 무언가를 넣은 것처럼 생각합니다.
Sean Magyar

8

Rails 3.2.13에서 오는 경우 많은 사람들이이 문제를 경험했으며 3.2.12로 되 돌리면 해결되는 것 같습니다. github에서 더 많은 정보를 찾을 수 있습니다 .

필자의 경우 비활성화 config.assets.debug하면 약간의 속도가 빨라졌지만 3.2.12로 되 돌리면 요청 시간이 약 4 초에서 약 250ms로 감소했습니다.


감사합니다! 내 0.2 초 페이지 요청은 3.2.13으로 15 초로 급증했습니다.
Turadg 2013 년

이것은 레일 3.2.14 수정되었습니다
프로 올드

2

NewRelic.com을 살펴 보십시오 -비용이 들지만 무료 평가판을 사용하면 응용 프로그램을 완전히 분석하고 병목 현상이있는 곳을 찾을 수 있습니다.

New Relic을 제외하고는 언제 시작 되었습니까? 최근에 무엇을 바꿨나요? Rails 및 / 또는 보석을 업그레이드 했습니까? 소스 제어에서 몇 가지 이전 버전을 확인하고 실행하고 문제를 일으킨 커밋을 구체적으로 시도하고 해결하십시오.

모든 브라우저에서 문제가 발생합니까? Chrome 타임 라인 뷰어를 실행하면 브라우저가 특정 자바 스크립트 부분에서 멈춰 있는지 확인할 수 있습니다.

또한 로컬 개발 웹 서버를 씬으로 전환 해보십시오. 문제가 지속됩니까?

행운을 빕니다!


안타깝게도 몇 가지를 변경하고 작업을 새 랩톱으로 옮겼습니다. 그래서 몇 가지가 될 수 있습니다. 랩톱 업그레이드가 그랬는지 의심 스러웠습니다. 이것이 보석인지 확인하면 진드기로 답장을 보내 겠지만 지금은 누군가 내 상황을 밝힐 수있는 경우를 대비하여이 질문을 종료하지 않을 것입니다.
Abram 2013 년

1
어떤 버전의 Rails를 사용하고 있습니까? 또한 로컬 개발 웹 서버로 Thin을 사용해 보셨습니까? 소스 제어를 사용하고 있습니까?
DaveStephens 2013 년

Hi Rails 3.2.13.rc1 ... Ruby 1.9.3 p392 ... 씬을 사용하고 있습니다. 예, bitbucket과 함께 git을 사용하고 있습니다.
아브람

좋아, 3.2.13.rc1을 사용하지 않았지만 릴리스 후보이므로 마지막 프로덕션 릴리스 버전 (3.2.12)으로 전환하여 그렇지 않은지 확인하십시오. 문제가 언제 시작되었는지 확인하기 위해 커밋 기록을 롤백 했습니까? 위의 자산 목록에서 내가 알아 차린 한 가지는 거기에 사용하지 않는 많은 것들이 있다는 것입니다. 아마도 그것을 정리해야 할 것입니다. selected.query로 무언가를 두 번 수행하는 것).
DaveStephens 2013 년

여기 도움을 주셔서 정말 감사합니다. 두 가지 좋은 제안을 하셨으므로 내일 밤에 다시 살펴 보겠습니다. 감사합니다. 다시 연락 드리겠습니다.
Abram 2013 년

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.