firstdraft / appdev_template

A Rails template for generating homework projects
0 stars 1 forks source link

Update development.rb to have whitelist.yml defaults #88

Closed jelaniwoods closed 4 years ago

jelaniwoods commented 5 years ago

development.rb should have

    path = Rails.root.join("whitelist.yml")
    default_whitelist_path = Rails.root.join("default_whitelist.yml")
    whitelisted_ips = []
    if File.exist?(path)
      whitelisted_ips = YAML.load_file(path)
    end
    if File.exist?(default_whitelist_path)
      whitelisted_ips = whitelisted_ips.concat(YAML.load_file(default_whitelist_path))
    end
    config.web_console.permissions = whitelisted_ips
    config.web_console.whiny_requests = false

from here but does not for some reason.

jelaniwoods commented 4 years ago

No longer relevant with gitpod.