레일 3.1을 사용하고 있으며 1 년 반 동안 개발 중입니다. 오늘 아침에 뭔가를 했어야했는데 내 파일이 많이 캐싱 된 것처럼 보입니다. 여기에는 뷰 파일, 컨트롤러 및 모델이 포함됩니다.레일 : 컨트롤러와 모델이 dev에서 캐시 된 것 같습니다
모델, 컨트롤러 등을 변경할 수 있으며 내 응용 프로그램에 영향을 미치지 않습니다 (localhost : 3000에서 실행). 포트 (예 : localhost : 3005)로 전환하려고했지만 작동하지 않았습니다.
컴퓨터 (Mac, Lion)에서 구성 파일을 변경하거나 크게 변경하지는 않았지만 분명히해야 할 일이 있습니다.
- 나는 맥
- 공용 폴더 내가/캐시/자산 폴더 을 삭제 한
- 404-페이지 등을 제외하고 비어에 TextMate를 사용하고
- 개발 모드에서 작업하고
- 나는 내 브라우저 서버를 다시 시작하는 것은 항상 작동하게
에 캐시를 삭제 한! 때로는 (매우 드물 긴하지만) 재시작없이 변경 사항이 적용되기도합니다.
이 내 development.rb입니다 :
# Settings specified here will take precedence over those in config/application.rb
# 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
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = 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_record.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
일어날 수 있고 어떻게 해결하거나 문제를 해결하는 일
?
설정 한 후 다시 false로 "= 사실 config.cache_classes을"TextMate를 사용하고
문제 ... 단서가 될 수 해결 일시적으로 갖고있는 것 같다? – Christoffer
이 문제를 해결할 수 있었습니까? 정확히 똑같은 일이 발생했습니다. 컴퓨터마다 다른 것 같습니다.내 컴퓨터에서 그것은 내 동료 컴퓨터에서 지속적으로 수업을 캐시합니다. – DickieBoy