Skip to content

Commit

Permalink
fixup 2 install igniter
Browse files Browse the repository at this point in the history
  • Loading branch information
electronicbites committed Nov 19, 2024
1 parent 69010b9 commit eccfbdb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/runtime.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import Config

config :beacon,
radiator: [
site: :radiator,
repo: Radiator.Repo,
endpoint: RadiatorWeb.Endpoint,
router: RadiatorWeb.Router
]

# config/runtime.exs is executed for all environments, including
# during releases. It is executed after compilation and before the
# system starts, so it is typically used to load production configuration
Expand Down
1 change: 1 addition & 0 deletions lib/radiator/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ defmodule Radiator.Application do
# Start to serve requests, typically the last entry
RadiatorWeb.Endpoint,
{CommandQueue, name: CommandQueue},
{Beacon, [sites: [Application.fetch_env!(:beacon, :radiator)]]},
{CommandProcessor, name: CommandProcessor, subscribe_to: [{CommandQueue, max_demand: 1}]},
{NodeChangeListener, name: NodeChangeListener},
{Registry, keys: :unique, name: Radiator.JobRegistry},
Expand Down
2 changes: 2 additions & 0 deletions lib/radiator_web/router.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
defmodule RadiatorWeb.Router do
use RadiatorWeb, :router

use Beacon.Router
use Beacon.LiveAdmin.Router
import RadiatorWeb.UserAuth

Expand All @@ -25,6 +26,7 @@ defmodule RadiatorWeb.Router do
scope "/" do
pipe_through [:browser, :beacon_admin]
beacon_live_admin "/admin"
beacon_site "/cms", site: :radiator
end

scope "/", RadiatorWeb do
Expand Down
6 changes: 6 additions & 0 deletions priv/repo/migrations/20241119171313_create_beacon_tables.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
defmodule Radiator.Repo.Migrations.CreateBeaconTables do
use Ecto.Migration

def up, do: Beacon.Migration.up()
def down, do: Beacon.Migration.down()
end

0 comments on commit eccfbdb

Please sign in to comment.