From 52680bfcfdda05e2fb5807bd0cc76213fac46414 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Sun, 24 Mar 2024 20:20:29 -0700 Subject: [PATCH] Removed useless setter for config path --- config/runtime.exs | 8 +------- selfhosted.Dockerfile | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/config/runtime.exs b/config/runtime.exs index 408492a..d2a9335 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -41,13 +41,7 @@ config :pinchflat, Pinchflat.Repo, ] if config_env() == :prod do - config_path = - System.get_env("CONFIG_PATH") || - raise """ - environment variable CONFIG_PATH is missing. - For example: /etc/pinchflat/config - """ - + config_path = "/config" db_path = System.get_env("DATABASE_PATH", Path.join([config_path, "db", "pinchflat.db"])) log_path = System.get_env("LOG_PATH", Path.join([config_path, "logs", "pinchflat.log"])) metadata_path = System.get_env("METADATA_PATH", Path.join([config_path, "metadata"])) diff --git a/selfhosted.Dockerfile b/selfhosted.Dockerfile index cbb6f78..5f7f128 100644 --- a/selfhosted.Dockerfile +++ b/selfhosted.Dockerfile @@ -101,7 +101,6 @@ RUN chown nobody /config /downloads # set runner ENV ENV MIX_ENV="prod" -ENV CONFIG_PATH="/config" ENV PORT=8945 ENV RUN_CONTEXT="selfhosted"