staging に限らずデフォルトで用意されている環境(development, production, test) 以外の環境を用意する場合、 設定ファイルを単純にコピーしてもいいのだが、DRYじゃないので diaspora を参考に以下のようにしてみた。
# config/environments/staging.rb require Rails.root.join('config', 'environments', 'production') Demo::Application.configure do config.log_level = :debug end
今回はログレベルのみproductionとは違う設定する。