Sha256: 3e9ed44ff437335649a97eba8ccb1010ac610f168726bc746629dd3001386b33
Contents?: true
Size: 566 Bytes
Versions: 4
Compression:
Stored size: 566 Bytes
Contents
# frozen_string_literal: true require 'rails/railtie' module GetaroundUtils; end module GetaroundUtils::Railties; end class GetaroundUtils::Railties::Dotenv < Rails::Railtie def load if ENV['DOTENVS'].present? overrides = ENV['DOTENVS'].split(',').map{ |n| [".env.#{n}.local", ".env.#{n}"] }.flatten warn('=' * 100) warn("⚠️ ENV is overriden with the following profiles: #{overrides}") warn('=' * 100) Dotenv.load(*overrides) end Dotenv::Rails.load Dotenv.load('.env.all.local', '.env.all') nil end end
Version data entries
4 entries across 4 versions & 1 rubygems