Removed useless setter for config path
This commit is contained in:
parent
8ae25ceb5c
commit
52680bfcfd
2 changed files with 1 additions and 8 deletions
|
|
@ -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"]))
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue