Skip to content

Commit

Permalink
Merge pull request #99 from pulibrary/deploy-dpulc
Browse files Browse the repository at this point in the history
Get DPUL-C to deploy to staging
  • Loading branch information
sdellis authored Sep 25, 2024
2 parents 1c9d0da + 9d243dc commit 7aec8ae
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Config

config :dpul_collections,
ecto_repos: [DpulCollections.Repo, DpulCollections.FiggyRepo],
ecto_repos: [DpulCollections.Repo],
generators: [timestamp_type: :utc_datetime]

# Configures the endpoint
Expand Down
3 changes: 3 additions & 0 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ config :dpul_collections, DpulCollectionsWeb.Endpoint,
]
]

# Set environment
config :dpul_collections, :current_env, :dev

# Enable dev routes for dashboard and mailbox
config :dpul_collections, dev_routes: true

Expand Down
3 changes: 3 additions & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import Config
config :dpul_collections, DpulCollectionsWeb.Endpoint,
cache_static_manifest: "priv/static/cache_manifest.json"

# Set environment
config :dpul_collections, :current_env, :prod

# Configures Swoosh API Client
config :swoosh, api_client: Swoosh.ApiClient.Finch, finch_name: DpulCollections.Finch

Expand Down
3 changes: 3 additions & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ config :dpul_collections, DpulCollectionsWeb.Endpoint,
# In test we don't send emails.
config :dpul_collections, DpulCollections.Mailer, adapter: Swoosh.Adapters.Test

# Set environment
config :dpul_collections, :current_env, :test

# Disable swoosh api client as it is only required for production adapters.
config :swoosh, :api_client, false

Expand Down
2 changes: 1 addition & 1 deletion lib/dpul_collections/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule DpulCollections.Application do
# {DpulCollections.Worker, arg},
# Start to serve requests, typically the last entry
DpulCollectionsWeb.Endpoint
] ++ environment_children(Mix.env())
] ++ environment_children(Application.fetch_env!(:dpul_collections, :current_env))

# See https://hexdocs.pm/elixir/Supervisor.html
# for other strategies and supported options
Expand Down

0 comments on commit 7aec8ae

Please sign in to comment.