Upgrading
Upgrade to a new version
As Pingvin Share is in early stage, see the release notes for breaking changes before upgrading.
Docker
docker compose pull
docker compose up -d
Portainer
- In your container page, click on Recreate.
- Check the Re-Pull image toggle.
- Click on Recreate.
Stand-alone
-
Stop the running app
pm2 stop pingvin-share-backend pingvin-share-frontend
-
Repeat the steps from the installation guide except the
git clone
step.cd pingvin-share
# Checkout the latest version
git fetch --tags && git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
# Start the backend
cd backend
npm install
npm run build
pm2 restart pingvin-share-backend
# Start the frontend
cd ../frontend
npm install
npm run build
pm2 restart pingvin-share-frontend
Note that environemnt variables are not picked up when using pm2 restart, if you actually want to change configs, you need to run pm2 --update-env restart