Skip to content

Commit

Permalink
Replace timeout app with test_api app
Browse files Browse the repository at this point in the history
  • Loading branch information
nallwhy committed Jun 11, 2022
1 parent dd8115a commit 44848b0
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 219 deletions.
2 changes: 1 addition & 1 deletion apps/json_corp_web/lib/json_corp_web/router.ex
Expand Up @@ -20,7 +20,7 @@ defmodule JsonCorpWeb.Router do
get "/", PageController, :index
end

forward "/timeout", TimeoutWeb.Router
forward "/test_api", TestApiWeb.Router

# Other scopes may use custom stacks.
# scope "/api", JsonCorpWeb do
Expand Down
2 changes: 1 addition & 1 deletion apps/json_corp_web/mix.exs
Expand Up @@ -51,7 +51,7 @@ defmodule JsonCorpWeb.MixProject do
{:json_corp, in_umbrella: true},
{:jason, "~> 1.2"},
{:plug_cowboy, "~> 2.5"},
{:timeout, github: "nallwhy/timeout"}
{:test_api, github: "nallwhy/test_api"}
]
end

Expand Down
37 changes: 2 additions & 35 deletions config/runtime.exs
Expand Up @@ -66,14 +66,9 @@ if config_env() == :prod do
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
end

# timeout
# test_api

if config_env() == :prod do
# The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you
# want to use a different value for prod and you most likely don't want
# to check this value into version control, so we use an environment
# variable instead.
secret_key_base =
System.get_env("SECRET_KEY_BASE") ||
raise """
Expand All @@ -83,35 +78,7 @@ if config_env() == :prod do

host = System.get_env("PHX_HOST") || "example.com"

config :timeout, TimeoutWeb.Endpoint,
config :test_api, TestApiWeb.Endpoint,
url: [host: host, scheme: "https", port: 443],
secret_key_base: secret_key_base

# ## Using releases
#
# If you are doing OTP releases, you need to instruct Phoenix
# to start each relevant endpoint:
#
# config :timeout, TimeoutWeb.Endpoint, server: true
#
# Then you can assemble a release by calling `mix release`.
# See `mix help release` for more information.

# ## Configuring the mailer
#
# In production you need to configure the mailer to use a different adapter.
# Also, you may need to configure the Swoosh API client of your choice if you
# are not using SMTP. Here is an example of the configuration:
#
# config :timeout, Timeout.Mailer,
# adapter: Swoosh.Adapters.Mailgun,
# api_key: System.get_env("MAILGUN_API_KEY"),
# domain: System.get_env("MAILGUN_DOMAIN")
#
# For this example you need include a HTTP client required by Swoosh API client.
# Swoosh supports Hackney and Finch out of the box:
#
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
#
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
end
49 changes: 0 additions & 49 deletions config/timeout/config.exs

This file was deleted.

65 changes: 0 additions & 65 deletions config/timeout/dev.exs

This file was deleted.

49 changes: 0 additions & 49 deletions config/timeout/prod.exs

This file was deleted.

18 changes: 0 additions & 18 deletions config/timeout/test.exs

This file was deleted.

3 changes: 2 additions & 1 deletion mix.lock
Expand Up @@ -32,5 +32,6 @@
"telemetry": {:hex, :telemetry, "1.1.0", "a589817034a27eab11144ad24d5c0f9fab1f58173274b1e9bae7074af9cbee51", [:rebar3], [], "hexpm", "b727b2a1f75614774cff2d7565b64d0dfa5bd52ba517f16543e6fc7efcc0df48"},
"telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"},
"telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"},
"timeout": {:git, "https://github.com/nallwhy/timeout.git", "d49a54ca91002e167b68298cfa3c6e639f3bcc2b", []},
"test_api": {:git, "https://github.com/nallwhy/test_api.git", "4fb42a767756a945fed54d23f92926823f0dfa3a", []},
"timeout": {:git, "https://github.com/nallwhy/timeout.git", "64846583674617a8290b61d06025ec69f66456b9", []},
}

0 comments on commit 44848b0

Please sign in to comment.