file server started in supervisor tree

This commit is contained in:
Owen
2024-12-15 22:48:47 +01:00
parent 81c95c28b2
commit 1b1fa19fff
8 changed files with 30 additions and 9 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ defmodule PlantIdDiscordBot.Application do
def start(_type, _args) do
children = [
PlantIdDiscordBot.Consumer,
PlantIdDiscordBot.RateLimiter
PlantIdDiscordBot.RateLimiter,
{Plug.Cowboy, scheme: :http, plug: PlantIdDiscordBot.FileServer, options: [port: @port]}
]
opts = [strategy: :one_for_one, name: PlantIdDiscordBot.Supervisor]