- Add configuration system (config/*.exs, OrgGarden.Config) - Refactor supervision tree with DynamicSupervisor and Registry - Add OrgGarden.Server for serve mode lifecycle management - Add health check HTTP endpoints (Bandit/Plug on :9090) - Add telemetry events for export and watcher operations - Implement graceful shutdown with SIGTERM handling - Add Mix Release support with overlay scripts - Add NixOS module for systemd service deployment - Update documentation with service usage
51 lines
923 B
Elixir
51 lines
923 B
Elixir
defmodule OrgGarden.MixProject do
|
|
use Mix.Project
|
|
|
|
def project do
|
|
[
|
|
app: :org_garden,
|
|
version: "0.1.0",
|
|
elixir: "~> 1.17",
|
|
start_permanent: Mix.env() == :prod,
|
|
deps: deps(),
|
|
escript: escript(),
|
|
releases: releases()
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[
|
|
extra_applications: [:logger],
|
|
mod: {OrgGarden.Application, []}
|
|
]
|
|
end
|
|
|
|
defp escript do
|
|
[main_module: OrgGarden.CLI]
|
|
end
|
|
|
|
defp releases do
|
|
[
|
|
org_garden: [
|
|
include_executables_for: [:unix],
|
|
applications: [runtime_tools: :permanent],
|
|
steps: [:assemble, :tar]
|
|
]
|
|
]
|
|
end
|
|
|
|
defp deps do
|
|
[
|
|
{:finch, "~> 0.19"},
|
|
{:req, "~> 0.5"},
|
|
{:jason, "~> 1.4"},
|
|
{:file_system, "~> 1.0"},
|
|
# Health check HTTP server
|
|
{:bandit, "~> 1.0"},
|
|
{:plug, "~> 1.15"},
|
|
# Telemetry
|
|
{:telemetry, "~> 1.0"}
|
|
]
|
|
end
|
|
end
|