create backend
This commit is contained in:
27
config/config.exs
Normal file
27
config/config.exs
Normal file
@@ -0,0 +1,27 @@
|
||||
import Config
|
||||
|
||||
config :mound_hunters,
|
||||
python_cli_path: System.get_env("PYTHON_CLI_PATH", "./cli.py"),
|
||||
las2mound_script_path: System.get_env("LAS2MOUND_PATH", "./tooling/las2mound.py"),
|
||||
tile_output_dir: "data",
|
||||
tile_temp_dir: "priv/tmp",
|
||||
mnesia_dir: ~c"priv/mnesia",
|
||||
http_port: String.to_integer(System.get_env("PORT", "4000")),
|
||||
log_dir: "priv/logs"
|
||||
|
||||
# Logger configuration
|
||||
config :logger,
|
||||
backends: [:console, {LoggerFileBackend, :request_log}]
|
||||
|
||||
config :logger, :console,
|
||||
format: "[$level] $message\n",
|
||||
metadata: [:request_id]
|
||||
|
||||
config :logger, :request_log,
|
||||
path: "priv/logs/requests.jsonl",
|
||||
level: :info,
|
||||
format: "$message\n",
|
||||
metadata: []
|
||||
|
||||
# Import environment specific config
|
||||
import_config "#{config_env()}.exs"
|
||||
6
config/dev.exs
Normal file
6
config/dev.exs
Normal file
@@ -0,0 +1,6 @@
|
||||
import Config
|
||||
|
||||
# Development-specific configuration
|
||||
config :logger, :console,
|
||||
format: "[$level] $message\n",
|
||||
metadata: [:request_id]
|
||||
3
config/prod.exs
Normal file
3
config/prod.exs
Normal file
@@ -0,0 +1,3 @@
|
||||
import Config
|
||||
|
||||
config :logger, level: :info
|
||||
7
config/test.exs
Normal file
7
config/test.exs
Normal file
@@ -0,0 +1,7 @@
|
||||
import Config
|
||||
|
||||
config :mound_hunters,
|
||||
http_port: 4001,
|
||||
mnesia_dir: ~c"priv/mnesia_test"
|
||||
|
||||
config :logger, level: :warning
|
||||
Reference in New Issue
Block a user