Skip to content

Refactor Pleroma.Frontend, enable a frontend through the CLI, fixes #2672

Alex Gleason requested to merge frontend-enable into develop

Downstream MR: https://gitlab.com/soapbox-pub/soapbox/-/merge_requests/34

  1. Refactors Pleroma.Frontend to use a %Frontend{} struct. Previously it passed in opts from the mix task, but using a struct makes it more modular.

  2. Introduces mix pleroma.frontend enable <name>. If ConfigDB isn't enabled, it'll raise.

  3. Adds mix pleroma.frontend install <name> --primary to install and enable a frontend with a single command. (--primary and --admin are supported).

Edited by Alex Gleason

Merge request reports