diff options
author | Roman Chvanikov <chvanikoff@pm.me> | 2020-07-20 20:45:41 +0300 |
---|---|---|
committer | Roman Chvanikov <chvanikoff@pm.me> | 2020-07-20 20:45:41 +0300 |
commit | 4e566a04082dacfc2057fd92a4f0f0ef1f1a9cb0 (patch) | |
tree | bee35c90dbcd311a2077aa57f8a0e9471feec995 /docs/administration/CLI_tasks/frontend.md | |
parent | adfcd59738c57f008398dab06b2dd02cef206925 (diff) | |
download | pleroma-4e566a04082dacfc2057fd92a4f0f0ef1f1a9cb0.tar.gz |
Update docs
Diffstat (limited to 'docs/administration/CLI_tasks/frontend.md')
-rw-r--r-- | docs/administration/CLI_tasks/frontend.md | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/docs/administration/CLI_tasks/frontend.md b/docs/administration/CLI_tasks/frontend.md index b66ac14d3..091631147 100644 --- a/docs/administration/CLI_tasks/frontend.md +++ b/docs/administration/CLI_tasks/frontend.md @@ -1,9 +1,14 @@ # Managing frontends -`mix pleroma.frontend install <frontend> --path <path>` +`mix pleroma.frontend install <frontend> [--path <path>] [--develop] [--ref <ref>]` +Frontend can be installed either from local path with compiled sources, or from web. -Install locally built frontend. +If installing from web, make sure you have [yarn](https://yarnpkg.com/getting-started/install) +since it's needed to build frontend locally. When no `--develop` or `--ref <ref>` +options passed, latest stable frontend will be installed. + +If installing from local path, building of sources is up to you. Currently supported `<frontend>` values: - [admin](https://git.pleroma.social/pleroma/admin-fe) @@ -11,7 +16,7 @@ Currently supported `<frontend>` values: - [mastodon](http://git.pleroma.social/pleroma/mastofe) - [pleroma](http://git.pleroma.social/pleroma/pleroma-fe) -The complete process of installing frontend would be following: +The complete process of installing frontend from local path would be following: - download a frontend: ```bash @@ -24,4 +29,17 @@ cd pleroma-fe && yarn && yarn build - run the following command inside your Pleroma instance root directory: ```bash mix pleroma.frontend install pleroma --path /path/to/pleroma-fe +``` + +The complete process of installing frontend from web would be following: +- make sure you've got `yarn` installed: + +```bash +yarn -v +``` + +- run the following command inside your Pleroma instance root directory to +install latest develop frontend: +```bash +mix pleroma.frontend install pleroma --develop ```
\ No newline at end of file |