Sha256: 97891d28fda5d1e57b40c94316ef9f2f4a30356271d23cfb0033b34199a3b29f
Contents?: true
Size: 1017 Bytes
Versions: 1
Compression:
Stored size: 1017 Bytes
Contents
# typed: false # frozen_string_literal: true PLUG_APP_URL = ENV.fetch("PLUG_APP_URL", "") YETTO_URL = if Rails.env.production? "yetto.app" elsif Rails.env.staging? "yetto-staging.onrender.com" elsif Rails.env.development? "localhost:3000" elsif Rails.env.test? "test.yetto.app" end YETTO_API_TLD = ENV.fetch("YETTO_API_TLD", "#{YETTO_URL}/api") YETTO_API_VERSION = ENV.fetch("YETTO_API_VERSION", "2023-03-06") SLACK_LOG_URL = Rails.application.credentials.fetch(:SLACK_LOG_URL, ENV.fetch("SLACK_LOG_URL", "https://slack.com/the_log_room")) YETTO_PLUG_PEM = Rails.application.credentials.fetch(:YETTO_PLUG_PEM, ENV.fetch("YETTO_PLUG_PEM", Rails.root.join("test/fixtures/files/fake_pem_file/fake.pem").read)) SIGNING_SECRET = Rails.application.credentials.fetch(:PLUG_EMAIL_URL, ENV.fetch("PLUG_EMAIL_URL", "super-secret")) YETTO_PLUG_ID = Rails.application.credentials.fetch(:YETTO_PLUG_ID, ENV.fetch("YETTO_PLUG_ID", "super-secret")) def productionish? Rails.env.production? || Rails.env.staging? end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hephaestus-0.2.2 | templates/config/initializers/environment.rb |