Technical Documentation
Return to Main Documentation
ENGLISH - version 2.3
ENGLISH - version 2.3
  • Introduction
  • Getting started
    • Create your fork
    • Configure your fork
    • Keep your fork updated
    • Communication
  • Installation
    • Local installation
      • Prerequisites
      • Ubuntu Linux
      • Debian Linux
      • macOS
      • Windows
      • Vagrant
      • Docker
    • Production and staging servers
      • Installer
      • Create a deploy user
      • Generating SSH Key
      • Manual installation (not recommended)
      • Digital Ocean
      • Heroku
      • Mail server configuration
    • Basic configuration
    • User documentation and guides
  • Customization
    • Introduction
    • Translations and texts
    • Images
    • Styles with CSS
    • JavaScript
    • Models
    • Controllers
    • Views and HTML
    • Components
    • Other Ruby classes (GraphQL, lib, mailers, builders)
    • Gems
    • Application configuration
    • Routes
    • Tests
  • Technical Features
    • OAuth
    • GraphQL
    • Debates and proposals recommendations
    • Configure Census Connection
    • Local Census
    • Multitenancy
    • User content translations
  • Open Source project
    • Code of conduct
    • Contributing
    • Coding conventions
    • Open source forks and modifications
    • License
Powered by GitBook
On this page
  • Overwriting application.rb
  • Overwriting environment configuration
  1. Customization

Application configuration

Overwriting application.rb

If you need to extend or modify the config/application.rb file, you can do so using the config/application_custom.rb file. For example, if you'd like to change the application timezone to the Canary Islands, just add:

module Consul
  class Application < Rails::Application
    config.time_zone = "Atlantic/Canary"
  end
end

In this particular case, note that the application time zone can alternatively be modified by editing the config/secrets.yml file.

Remember that in order to apply these changes you'll need to restart the application.

Overwriting environment configuration

If you'd like to customize the development, test, staging, preproduction or production environments, you can do so by editing the files under config/environments/custom/.

Note that changes in config/environments/custom/production.rb are also applied to the staging and preproduction environments, and changes in config/environments/custom/staging.rb are also applied to the preproduction environment.

And remember that in order to apply these changes you'll need to restart the application.

PreviousGemsNextRoutes

Last updated 2 months ago