Skip to content

Commit

Permalink
Include runtime.exs in container image build
Browse files Browse the repository at this point in the history
  • Loading branch information
mbklein committed Nov 11, 2024
1 parent 8d07066 commit 9aa620f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
1 change: 0 additions & 1 deletion app/.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ _build
assets/coverage
**/node_modules
config/dev*.exs
config/runtime.exs
config/test*.exs
deps
doc
Expand Down
12 changes: 0 additions & 12 deletions app/config/releases.exs

This file was deleted.

3 changes: 2 additions & 1 deletion app/lib/meadow/config/runtime.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ defmodule Meadow.Config.Runtime do

config :honeybadger,
api_key: get_secret(:meadow, ["honeybader", "api_key"], "DO_NOT_REPORT"),
environment_name: get_secret(:meadow, ["honeybadger", "environment"], to_string(Mix.env())),
environment_name:
get_secret(:meadow, ["honeybadger", "environment"], to_string(environment())),
revision: System.get_env("HONEYBADGER_REVISION", ""),
repos: [Meadow.Repo],
breadcrumbs_enabled: true,
Expand Down
5 changes: 4 additions & 1 deletion app/lib/meadow/config/runtime/prod.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ defmodule Meadow.Config.Runtime.Prod do
import Config

config :meadow, MeadowWeb.Endpoint,
environment: :prod,
environment_prefix: nil,
url: [host: System.get_env("MEADOW_HOSTNAME", "example.com"), port: 80],
cache_static_manifest: "priv/static/cache_manifest.json",
server: true

config :logger,
compile_time_purge_matching: [
[level_lower_than: :info]
]
],
level: :info
end
end

0 comments on commit 9aa620f

Please sign in to comment.