It is recommended to periodically update both Nextcloud and LibreSign in your local environment to ensure compatibility.
First, check if there are any local modifications in your Nextcloud repository:
cd path/to/nextcloud git statusNote
If there are uncommitted changes, resolve them (commit, stash, or discard) before pulling updates. This avoids conflicts when updating from the master branch.
Pull the latest changes from the Nextcloud master branch:
git pull origin master
After pulling, the
3rdpartyfolder may be outdated. In that case, run:git submodule update --init --recursive
Before starting a new task, always make sure your local
mainbranch is up to date with the upstream repository:cd path/to/libresign git checkout main git pull upstream mainThen create your feature or fix branch from the updated
main.
Use this flow when LibreSign is installed directly on the host in custom apps.
cd /path/to/custom_apps
git clone https://github.com/LibreSign/libresign.git cd libresign git submodule update --init --recursive chown -R www-data: . git fetch origin stable32 git checkout stable32
docker run -it -v $PWD:/app --workdir /app composer composer install --no-dev --ignore-platform-req=ext-gd --ignore-platform-req=ext-bcmath --ignore-platform-req=ext-intl
Install dependencies defined in
package.json:docker run -it -v $PWD:/app --workdir /app node npm ci docker run -it -v $PWD:/app --workdir /app node npm run build
occ app:enable libresign occ libresign:install --all