logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

frontend.md (3074B)


  1. # Managing frontends
  2. === "OTP"
  3. ```sh
  4. ./bin/pleroma_ctl frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>]
  5. ```
  6. === "From Source"
  7. ```sh
  8. mix pleroma.frontend install <frontend> [--ref <ref>] [--file <file>] [--build-url <build-url>] [--path <path>] [--build-dir <build-dir>]
  9. ```
  10. Frontend can be installed either from local zip file, or automatically downloaded from the web.
  11. You can give all the options directly on the command line, but missing information will be filled out by looking at the data configured under `frontends.available` in the config files.
  12. Currently, known `<frontend>` values are:
  13. - [admin-fe](https://git.pleroma.social/pleroma/admin-fe)
  14. - [kenoma](http://git.pleroma.social/lambadalambda/kenoma)
  15. - [pleroma-fe](http://git.pleroma.social/pleroma/pleroma-fe)
  16. - [fedi-fe](https://git.pleroma.social/pleroma/fedi-fe)
  17. - [soapbox](https://gitlab.com/soapbox-pub/soapbox)
  18. You can still install frontends that are not configured, see below.
  19. ## Example installations for a known frontend
  20. For a frontend configured under the `available` key, it's enough to install it by name.
  21. === "OTP"
  22. ```sh
  23. ./bin/pleroma_ctl frontend install pleroma
  24. ```
  25. === "From Source"
  26. ```sh
  27. mix pleroma.frontend install pleroma
  28. ```
  29. This will download the latest build for the pre-configured `ref` and install it. It can then be configured as the one of the served frontends in the config file (see `primary` or `admin`).
  30. You can override any of the details. To install a pleroma build from a different URL, you could do this:
  31. === "OTP"
  32. ```sh
  33. ./bin/pleroma_ctl frontend install pleroma --ref 2hu_edition --build-url https://example.org/raymoo.zip
  34. ```
  35. === "From Source"
  36. ```sh
  37. mix pleroma.frontend install pleroma --ref 2hu_edition --build-url https://example.org/raymoo.zip
  38. ```
  39. Similarly, you can also install from a local zip file.
  40. === "OTP"
  41. ```sh
  42. ./bin/pleroma_ctl frontend install pleroma --ref mybuild --file ~/Downloads/doomfe.zip
  43. ```
  44. === "From Source"
  45. ```sh
  46. mix pleroma.frontend install pleroma --ref mybuild --file ~/Downloads/doomfe.zip
  47. ```
  48. The resulting frontend will always be installed into a folder of this template: `${instance_static}/frontends/${name}/${ref}`.
  49. Careful: This folder will be completely replaced on installation.
  50. ## Example installation for an unknown frontend
  51. The installation process is the same, but you will have to give all the needed options on the command line. For example:
  52. === "OTP"
  53. ```sh
  54. ./bin/pleroma_ctl frontend install gensokyo --ref master --build-url https://gensokyo.2hu/builds/marisa.zip
  55. ```
  56. === "From Source"
  57. ```sh
  58. mix pleroma.frontend install gensokyo --ref master --build-url https://gensokyo.2hu/builds/marisa.zip
  59. ```
  60. If you don't have a zip file but just want to install a frontend from a local path, you can simply copy the files over a folder of this template: `${instance_static}/frontends/${name}/${ref}`.