Skip to content

Commit eccfbdb

Browse files
fixup 2 install igniter
1 parent 69010b9 commit eccfbdb

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

config/runtime.exs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import Config
22

3+
config :beacon,
4+
radiator: [
5+
site: :radiator,
6+
repo: Radiator.Repo,
7+
endpoint: RadiatorWeb.Endpoint,
8+
router: RadiatorWeb.Router
9+
]
10+
311
# config/runtime.exs is executed for all environments, including
412
# during releases. It is executed after compilation and before the
513
# system starts, so it is typically used to load production configuration

lib/radiator/application.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ defmodule Radiator.Application do
2929
# Start to serve requests, typically the last entry
3030
RadiatorWeb.Endpoint,
3131
{CommandQueue, name: CommandQueue},
32+
{Beacon, [sites: [Application.fetch_env!(:beacon, :radiator)]]},
3233
{CommandProcessor, name: CommandProcessor, subscribe_to: [{CommandQueue, max_demand: 1}]},
3334
{NodeChangeListener, name: NodeChangeListener},
3435
{Registry, keys: :unique, name: Radiator.JobRegistry},

lib/radiator_web/router.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
defmodule RadiatorWeb.Router do
22
use RadiatorWeb, :router
33

4+
use Beacon.Router
45
use Beacon.LiveAdmin.Router
56
import RadiatorWeb.UserAuth
67

@@ -25,6 +26,7 @@ defmodule RadiatorWeb.Router do
2526
scope "/" do
2627
pipe_through [:browser, :beacon_admin]
2728
beacon_live_admin "/admin"
29+
beacon_site "/cms", site: :radiator
2830
end
2931

3032
scope "/", RadiatorWeb do
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
defmodule Radiator.Repo.Migrations.CreateBeaconTables do
2+
use Ecto.Migration
3+
4+
def up, do: Beacon.Migration.up()
5+
def down, do: Beacon.Migration.down()
6+
end

0 commit comments

Comments
 (0)