BeaconCMS / beacon

Open-source content management system (CMS) built with Phoenix LiveView. Faster render times to boost SEO performance, even for the most content-heavy pages.
https://beaconcms.org
MIT License
885 stars 89 forks source link

Add :repo option to Beacon.Config #520

Closed APB9785 closed 2 months ago

APB9785 commented 3 months ago

This moves us from forcing Beacon.Repo everywhere, to allowing the user to configure their own repo via Beacon.Config.

Much inspiration was taken from Oban, which uses the same approach

Installing Beacon is now a matter of

$ mix ecto.gen.migration create_beacon_tables

and

defmodule MYApp.Repo.Migrations.CreateBeaconTables do
  use Ecto.Migration

  defdelegate up, to: Beacon.Migration

  defdelegate down, to: Beacon.Migration
end