Sha256: 854639ae1d11cee375507ecaff39b91e36e4395b10d5939d7d6d39cb8ac28d05

Contents?: true

Size: 925 Bytes

Versions: 5

Compression:

Stored size: 925 Bytes

Contents

# frozen_string_literal: true

require_relative "production"

Rails.application.configure do
  config.enable_reloading = false

  config.assume_ssl = false
  config.force_ssl  = false

  # FIXME: Tags are not being reset right now
  config.log_tags = []

  if ENV["DEBUG"] == "1"
    config.consider_all_requests_local = true
    config.action_dispatch.show_exceptions = :none
    config.log_level = :debug
    config.logger = Logger.new($stdout)
  end

  config.cache_store = :memory_store
  config.active_job.queue_adapter = :inline
  config.action_mailer.delivery_method = :null

  if config.respond_to?(:active_storage)
    config.active_storage.variant_processor = :null
  end

  # Do not use the same secret key base in a local app (for security reasons)
  config.secret_key_base = "wasm-secret"
  # Use a different session cookie name to avoid conflicts
  config.session_store :cookie_store, key: "_local_session"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
wasmify-rails-0.2.0 lib/generators/wasmify/install/templates/config/environments/wasm.rb
wasmify-rails-0.1.5 lib/generators/wasmify/install/templates/config/environments/wasm.rb
wasmify-rails-0.1.4 lib/generators/wasmify/install/templates/config/environments/wasm.rb
wasmify-rails-0.1.3 lib/generators/wasmify/install/templates/config/environments/wasm.rb
wasmify-rails-0.1.2 lib/generators/wasmify/install/templates/config/environments/wasm.rb