production環境上 也能直接顯示css js的變動
因為人因需求 需要直接修改production環境的css檔
因此先修改production.rb的設定
因此先修改production.rb的設定
rails s -e production
# Code is not reloaded between requests.
# config.cache_classes = true
config.cache_classes = false
# Disable Rails's static asset server (Apache or nginx will already do this).
#config.serve_static_assets = false
config.serve_static_assets = true
# Do not fallback to assets pipeline if a precompiled asset is missed.
# config.assets.compile = false
config.assets.compile = true
# Generate digests for assets URLs.
#config.assets.digest = true
config.assets.digest = false
沒有留言:
張貼留言