mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
file server started in supervisor tree
This commit is contained in:
+2
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user