From 605d85d996c0d28c1e415cbede421e38fdcc3686 Mon Sep 17 00:00:00 2001 From: Pierre de Lacroix Date: Wed, 18 Aug 2021 21:58:21 +0200 Subject: remove production config --- config/prod.exs | 10 +++++----- config/prod.secret.exs | 29 ----------------------------- 2 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 config/prod.secret.exs diff --git a/config/prod.exs b/config/prod.exs index 1bb706e..e3687cc 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -9,12 +9,12 @@ use Mix.Config # manifest is generated by the `mix phx.digest` task, # which you should run after static files are built and # before starting your production server. -config :matrix_app_service, MatrixAppServiceWeb.Endpoint, - url: [host: "example.com", port: 80], - cache_static_manifest: "priv/static/cache_manifest.json" +# config :matrix_app_service, MatrixAppServiceWeb.Endpoint, +# url: [host: "example.com", port: 80], +# cache_static_manifest: "priv/static/cache_manifest.json" # Do not print debug messages in production -config :logger, level: :info +# config :logger, level: :info # ## SSL Support # @@ -52,4 +52,4 @@ config :logger, level: :info # Finally import the config/prod.secret.exs which loads secrets # and configuration from environment variables. -import_config "prod.secret.exs" +# import_config "prod.secret.exs" diff --git a/config/prod.secret.exs b/config/prod.secret.exs deleted file mode 100644 index a20e76d..0000000 --- a/config/prod.secret.exs +++ /dev/null @@ -1,29 +0,0 @@ -# In this file, we load production configuration and secrets -# from environment variables. You can also hardcode secrets, -# although such is generally not recommended and you have to -# remember to add this file to your .gitignore. -use Mix.Config - -secret_key_base = - System.get_env("SECRET_KEY_BASE") || - raise """ - environment variable SECRET_KEY_BASE is missing. - You can generate one by calling: mix phx.gen.secret - """ - -config :matrix_app_service, MatrixAppServiceWeb.Endpoint, - http: [ - port: String.to_integer(System.get_env("PORT") || "4000"), - transport_options: [socket_opts: [:inet6]] - ], - secret_key_base: secret_key_base - -# ## Using releases (Elixir v1.9+) -# -# If you are doing OTP releases, you need to instruct Phoenix -# to start each relevant endpoint: -# -# config :matrix_app_service, MatrixAppServiceWeb.Endpoint, server: true -# -# Then you can assemble a release by calling `mix release`. -# See `mix help release` for more information. -- cgit v1.2.3