diff --git a/docs/services/onlyoffice.md b/docs/services/onlyoffice.md index fc88b9d1..ba39e6bf 100644 --- a/docs/services/onlyoffice.md +++ b/docs/services/onlyoffice.md @@ -11,7 +11,6 @@ cd ~/nextcloud-docker-dev/workspace/server/apps-extra git clone https://github.com/ONLYOFFICE/onlyoffice-nextcloud onlyoffice ``` - A script is available to automatically setup ONLYOFFICE for you combined with an already running Nextcloud container. It requires to have the onlyoffice integration app cloned into your apps directory. @@ -20,6 +19,40 @@ It requires to have the onlyoffice integration app cloned into your apps directo ./scripts/enable-onlyoffice ``` +## Stable Nextcloud versions + +1. Make sure to clone as explained above. +2. Create a `worktree` pointing to the stable version you want e.g. `stable32` to run `onlyoffice` with. + The second parameter in the command can be a existing tag or branch from their repo e.g. `tags/v9.12.0`. + + ```bash + cd ~/nextcloud-docker-dev/workspace/server/apps-extra/onlyoffice + git worktree add ../../..//apps-extra/onlyoffice + ``` + +3. Set up onlyoffice as partially explained in + + 3.1. Initiate the submodules: + ```bash + git submodule update --init --recursive + ``` + 3.2. Build webpack: + ```bash + npm install + npm run build + ``` + 3.3. Install Composer dependencies + ```bash + composer install + ``` + +4. After starting your stable branch container, run: + ```bash + ./scripts/enable-onlyoffice + ``` + +!!! note You can check if everything is set up correctly by accessing the settings page in your stable container at or by logging into the container and running the occ command: `occ onlyoffice:documentserver --check`. + ## Manual steps - Make sure to have the ONLYOFFICE hostname setup in your `/etc/hosts` file: `127.0.0.1 onlyoffice.local`