docs: document config/ and some directories in app/.

* Add README files to several directories in app/ giving a brief
  overview of some parts of Danbooru's architecture.
* Add documentation for files in config/.
This commit is contained in:
evazion
2021-06-26 22:47:54 -05:00
parent b9068b8a3e
commit 0563ca3001
28 changed files with 534 additions and 8 deletions

View File

@@ -1,4 +1,10 @@
# This file runs after config/boot.rb and before config/environment.rb. It loads Rails, loads the gems, loads the
# Danbooru configuration, and does some basic Rails configuration.
#
# @see https://guides.rubyonrails.org/initialization.html
require_relative 'boot'
require "rails"
require "active_record/railtie"
# require "active_storage/engine"
@@ -12,8 +18,11 @@ require "active_job/railtie"
require "rails/test_unit/railtie"
# require "sprockets/railtie"
# Load the gems for the current Rails environment from the Gemfile.
Bundler.require(*Rails.groups)
# Load the default Danbooru configuration from config/danbooru_default_config.rb and the custom config from
# config/danbooru_local_config.rb.
begin
require_relative "danbooru_default_config"
require_relative ENV.fetch("DANBOORU_CONFIG_FILE", "danbooru_local_config")