mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 04:26:57 +00:00
port update in prod
This commit is contained in:
+4
-3
@@ -1,15 +1,16 @@
|
|||||||
defmodule PlantIdDiscordBot.Application do
|
defmodule PlantIdDiscordBot.Application do
|
||||||
use Application
|
use Application
|
||||||
|
|
||||||
@port Application.compile_env(:plantid_discord_bot, :port)
|
|
||||||
|
|
||||||
@impl true
|
@impl true
|
||||||
def start(_type, _args) do
|
def start(_type, _args) do
|
||||||
children = [
|
children = [
|
||||||
PlantIdDiscordBot.Consumer,
|
PlantIdDiscordBot.Consumer,
|
||||||
PlantIdDiscordBot.RateLimiter,
|
PlantIdDiscordBot.RateLimiter,
|
||||||
PlantIdDiscordBot.Scheduler,
|
PlantIdDiscordBot.Scheduler,
|
||||||
{Plug.Cowboy, scheme: :http, plug: PlantIdDiscordBot.FileServer, options: [port: @port]}
|
{Plug.Cowboy,
|
||||||
|
scheme: :http,
|
||||||
|
plug: PlantIdDiscordBot.FileServer,
|
||||||
|
options: [port: Application.get_env(:plantid_discord_bot, :port)]}
|
||||||
]
|
]
|
||||||
|
|
||||||
opts = [strategy: :one_for_one, name: PlantIdDiscordBot.Supervisor]
|
opts = [strategy: :one_for_one, name: PlantIdDiscordBot.Supervisor]
|
||||||
|
|||||||
Reference in New Issue
Block a user