Skip to content

Keep all the configuration variables under a single namespace.

License

Notifications You must be signed in to change notification settings

honeypotio/appconfig-rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppConfig

Keep all the configuration variables under a single namespace.

Installation

# Gemfile
gem 'appconfig', github: 'honeypotio/appconfig-rb', require: false

require 'appconfig' possibly before than any other file (which in Rails is after require 'rails/all').

If you use Dotenv, initialize it before this gem though.

Setup

Create a config folder and store two new files called secrets.yml and config.yml (in a Rails app you only need the last one).

The config.yml could initially look like this:

default: &defaults
  hello_email: <%= ENV.fetch('HELLO_EMAIL', '[email protected]') %>

  title: 'Honeypot - The Developer-Focused Job Platform'
  description: 'Honeypot is a Developer-Focused Job Platform. Companies apply to you with salary and tech stack upfront.'
  protocol: 'https'

development:
  <<: *defaults
  protocol: 'http'

About

Keep all the configuration variables under a single namespace.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages