Skip to content

Commit

Permalink
cleanup: move Bridge API config into runtime.exs
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Aug 28, 2024
1 parent be568b9 commit 31b8284
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 0 additions & 3 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ config :skate,
busloc_url: {:system, "BUSLOC_URL"},
trip_updates_url: {:system, "TRIP_UPDATES_URL"},
bridge_requester: Bridge.Request,
bridge_url: {:system, "BRIDGE_URL"},
bridge_api_username: {:system, "BRIDGE_API_USERNAME"},
bridge_api_password: {:system, "BRIDGE_API_PASSWORD"},
start_data_processes: true,
record_appcues: false,
record_fullstory: false,
Expand Down
6 changes: 6 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ config :skate,
swiftly_authorization_key: System.get_env("SWIFTLY_AUTHORIZATION_KEY"),
swiftly_realtime_vehicles_url: System.get_env("SWIFTLY_REALTIME_VEHICLES_URL")

# Chelsea Bridge API
config :skate,
bridge_api_password: System.get_env("BRIDGE_API_PASSWORD"),
bridge_api_username: System.get_env("BRIDGE_API_USERNAME"),
bridge_url: System.get_env("BRIDGE_URL")

if System.get_env("SECRET_KEY_BASE") do
config :skate, SkateWeb.Endpoint, secret_key_base: System.get_env("SECRET_KEY_BASE")
end
Expand Down
3 changes: 0 additions & 3 deletions lib/skate/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ defmodule Skate.Application do
:trip_updates_url,
:geonames_url_base,
:geonames_token,
:bridge_url,
:bridge_api_username,
:bridge_api_password,
:sentry_frontend_dsn,
:sentry_environment,
:sentry_org_slug,
Expand Down

0 comments on commit 31b8284

Please sign in to comment.