Sha256: 77bfda4f3532e2cebad51eb52944a281313a0e2a868ebfaae8e6495c56894d11
Contents?: true
Size: 484 Bytes
Versions: 68
Compression:
Stored size: 484 Bytes
Contents
return if ENV["SECRET_KEY_BASE_DUMMY"].present? # Add required env vars to this list required_env_vars = %w[] if Rails.env.production? required_env_vars += %w[RAILS_MASTER_KEY DATABASE_URL] end # Add additional env vars here # Check required env vars required_env_vars.each do |env_var| if !ENV.has_key?(env_var) || ENV[env_var].blank? raise <<~EOL Missing required environment variable: #{env_var} Ask a teammate for the appropriate value. EOL end end
Version data entries
68 entries across 68 versions & 1 rubygems