मैं एक नई रेल 3.2 परियोजना बना रहा हूं और सीएसएस फाइलों पर किए गए अंतिम संशोधनों को छोड़कर सब ठीक हो रहा है।रेल 3.2 और सीएसएस फ़ाइल पर संशोधन संपत्तियों को प्रतिबिंबित नहीं करते हैं: प्रीकंपाइल
मैं इस फ़ाइल पर app/assets/stylesheets/application.css
परिवर्तन कुछ भी करते हैं, मैं नहीं ब्राउज़र पर परिवर्तन जब तक मैं कंसोल पर निम्न आदेश चला देख सकते हैं:
bundle exec rake assets:precompile RAILS_ENV=development
मेरी config/environment/development.rb
फ़ाइल।
Sample::Application.configure do
# 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
end
कोई मदद?
क्या आप अपना सर्वर विकास मोड में या उत्पादन में शुरू करते हैं? क्या आप विकास के लिए कभी-कभी एक ही बंदरगाह का उपयोग करते हैं, कभी-कभी उत्पादन के लिए? संपत्तियों को प्रीकंपाइल करने के लिए क्या आपने पहले ऐसा किया है? मैंने एक समान व्यवहार देखा है, और अब 2 रिपोज़ हैं, विकास के लिए एक और उत्पादन के लिए एक उस स्थिति से बचने के लिए। – mliebelt
@mliebelt केवल विकास मोड में काम कर रहा है –
यदि आप अपने परिवर्तन देखने के लिए सर्वर को रोकते हैं और पुनरारंभ करते हैं तो यह मदद करता है? इस प्रभाव को कभी नहीं मिला ... क्या आप 'कॉन्फ़िगरेशन/वातावरण/विकास.आरबी'' की कॉन्फ़िगरेशन जोड़ सकते हैं जो संपत्ति से संबंधित हैं? – mliebelt