Mercurial > zeropaste
view config/config_init.rb @ 499:d2ef59c9a4b4
Use rails rubocop
author | nanaya <me@nanaya.net> |
---|---|
date | Sun, 15 Dec 2024 22:33:27 +0900 |
parents | 300bac944674 |
children | 507b7f8e8b3b |
line wrap: on
line source
$cfg = {} $cfg[:secret_key] = ENV["ZP_SECRET_KEY"] env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" config_local = File.expand_path("config_local_#{env}.rb", __dir__) require config_local if File.exist? config_local $cfg[:standalone] = true if $cfg[:standalone].nil? $cfg[:log_to_stdout] = true if $cfg[:log_to_stdout].nil? $cfg[:bundler_groups] ||= [ :default, env ] $cfg[:bundler_groups] << "standalone" if $cfg[:standalone] $cfg.freeze