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

Version Path
plutonium-0.19.2 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.19.1 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.19.0 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.8 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.7 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.6 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.5 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.4 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.3 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.2 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.1 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.18.0 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.16.5 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.16.4 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.16.3 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.16.1 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.16.0 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.15.24 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.15.23 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb
plutonium-0.15.22 lib/generators/pu/gem/dotenv/templates/config/initializers/001_ensure_required_env.rb