From 6f06ae2b9b7286de07a74f7b84765df6044b5b99 Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 14 Jan 2025 23:10:36 +0000 Subject: [PATCH] move the enabling of the schedule to a app env var --- config/config.exs | 3 ++- config/test.exs | 3 +++ lib/ppr_api/application.ex | 4 ++-- .../favicon-91f37b602a111216f1eef3aa337ad763.ico | Bin 0 -> 152 bytes .../logo-06a11be1f2cdde2c851763d00bdd2e80.svg | 6 ++++++ .../logo-06a11be1f2cdde2c851763d00bdd2e80.svg.gz | Bin 0 -> 1613 bytes priv/static/images/logo.svg.gz | Bin 0 -> 1613 bytes .../robots-9e2c81b0855bbff2baa8371bc4a78186.txt | 5 +++++ ...obots-9e2c81b0855bbff2baa8371bc4a78186.txt.gz | Bin 0 -> 164 bytes priv/static/robots.txt.gz | Bin 0 -> 164 bytes rel/overlays/bin/migrate | 5 +++++ rel/overlays/bin/migrate.bat | 1 + rel/overlays/bin/server | 5 +++++ rel/overlays/bin/server.bat | 2 ++ 14 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 priv/static/favicon-91f37b602a111216f1eef3aa337ad763.ico create mode 100644 priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg create mode 100644 priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg.gz create mode 100644 priv/static/images/logo.svg.gz create mode 100644 priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt create mode 100644 priv/static/robots-9e2c81b0855bbff2baa8371bc4a78186.txt.gz create mode 100644 priv/static/robots.txt.gz create mode 100755 rel/overlays/bin/migrate create mode 100755 rel/overlays/bin/migrate.bat create mode 100755 rel/overlays/bin/server create mode 100755 rel/overlays/bin/server.bat diff --git a/config/config.exs b/config/config.exs index ae19272..1f8a436 100644 --- a/config/config.exs +++ b/config/config.exs @@ -9,7 +9,8 @@ import Config config :ppr_api, ecto_repos: [PprApi.Repo], - generators: [timestamp_type: :utc_datetime] + generators: [timestamp_type: :utc_datetime], + scheduler_enabled: true # Configures the endpoint config :ppr_api, PprApiWeb.Endpoint, diff --git a/config/test.exs b/config/test.exs index bc76126..c82bf53 100644 --- a/config/test.exs +++ b/config/test.exs @@ -1,5 +1,8 @@ import Config +config :ppr_api, + scheduler_enabled: false + # Configure your database # # The MIX_TEST_PARTITION environment variable can be used diff --git a/lib/ppr_api/application.ex b/lib/ppr_api/application.ex index 270a7f3..4975419 100644 --- a/lib/ppr_api/application.ex +++ b/lib/ppr_api/application.ex @@ -15,8 +15,8 @@ defmodule PprApi.Application do ] children = - if Mix.env() != :test do - children ++ [PprApi.Scheduler] + if Application.get_env(:ppr_api, :scheduler_enabled) do + Enum.concat(children, [PprApi.Scheduler]) else children end diff --git a/priv/static/favicon-91f37b602a111216f1eef3aa337ad763.ico b/priv/static/favicon-91f37b602a111216f1eef3aa337ad763.ico new file mode 100644 index 0000000000000000000000000000000000000000..7f372bfc21cdd8cb47585339d5fa4d9dd424402f GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=@t!V@Ar*{oFEH`~d50E!_s``s q?{G*w(7?#d#v@^nKnY_HKaYb01EZMZjMqTJ89ZJ6T-G@yGywoKK_h|y literal 0 HcmV?d00001 diff --git a/priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg b/priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg new file mode 100644 index 0000000..9f26bab --- /dev/null +++ b/priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg @@ -0,0 +1,6 @@ + diff --git a/priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg.gz b/priv/static/images/logo-06a11be1f2cdde2c851763d00bdd2e80.svg.gz new file mode 100644 index 0000000000000000000000000000000000000000..d8d1f38b39fd9260b40ceceae1fd11e34f4a9518 GIT binary patch literal 1613 zcmV-T2D14diwFP!000006HS)SZXP!h#P5EJf%ZHUn{2Ylg=HYgBDZ}3-Gt9hY(TaH zMTzqG`>P%w7O+P%{P?H4x~iJ*|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