cirandas.net

ref: master

config/dotenv.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
begin
  require 'dotenv'

  # Load custom variables for the deploy
  Dotenv.load '.env.custom'

  # Load environment specific .env files
  Dotenv.load ".env.#{ENV['RAILS_ENV']}"

  # The regular .env is required and overwrites everything that is not already set
  Dotenv.load! '.env'

rescue LoadError
  # put dotenv on config/Gemfile to use it
end