0

레일을 4.0.3에서 4.1.9로 업그레이드 한 후 WEBrick을 시작하고 브라우저에서 내 페이지를 성공적으로로드하지만 아무 것도 표시되지 않습니다. 터미널 창에서. SQL이없고 렌더링 보고서가 없으며 500 서버 오류조차도 언급되지 않습니다.레일 4.0.3에서 4.1로 업그레이드 한 후 WEBrick이 더 이상 서버 콘솔에 아무 것도 출력하지 않습니다

이 실행에 WEBrick 일반적인 알림을로드 않습니다 레일 업그레이드를 제외하고

$ rails s 
=> Booting WEBrick 
=> Rails 4.1.9 application starting in local on http://0.0.0.0:3000 
=> Run `rails server -h` for more startup options 
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option) 
=> Ctrl-C to shutdown server 
[2015-01-15 15:47:22] INFO WEBrick 1.3.1 
[2015-01-15 15:47:22] INFO ruby 2.0.0 (2013-06-27) [x86_64-darwin12.3.0] 
[2015-01-15 15:47:22] INFO WEBrick::HTTPServer#start: pid=1122 port=3000 

아무것도 내 Gemfile에 버전 번호를 정의하고 bundle update rails를 실행하여 수행, 변경되지 않았습니다. 내 환경 설정 파일에 config.log_level = :debug을 설정하려했지만 사랑이 없습니다. 어떤 아이디어?

답변

1

난 그냥 내 로그를-정의 재 결국

# application.rb 

config.logger = ActiveSupport::Logger.new(STDOUT) 
file_logger = Logger.new(Rails.root.join("log/#{Rails.env}.log")) 
config.logger.extend(ActiveSupport::Logger.broadcast(file_logger))