Admin UI to manage content for sites built by Beacon.
Pre-release version. You can expect incomplete features and breaking changes before a stable v0.1.0 is released.
LiveAdmin requires at least one site running to manage, so let's start LiveAdmin first and then start a sample site.
- Setup your local env
mix setup
- Run LiveAdemin
iex --sname admin -S mix dev
Keep this instance running.
-
Open another terminal or tab, clone Beacon into another directory and follow the Local Development instructions to get a site up and running.
You'll notice that no site is displayed, that's because Beacon LiveAdmin looks for sites running in the cluster and the two nodes aren't connected yet.
- In the beacon iex terminal (the last one you started) execute the following:
{:ok, hostname} = :inet.gethostname()
node = :"admin@#{List.to_string(hostname)}"
Node.connect(node)
Now you should see a site listed in the admin home page.