Updating Stilmerce
How to apply a new Stilmerce release to an existing installation.
Updating Stilmerce
Check Current Version
cat /var/www/stilmerce/api/package.json | grep '"version"'Download the New Release
Download the new release ZIP from stilgen.com and upload it to your server.
scp stilmerce-vX.Y.Z.zip your-user@your-server:/tmp/Run the Updater
Extract the archive and run the update script:
cd /tmp
unzip stilmerce-vX.Y.Z.zip
cd stilmerce-vX.Y.Z
bash update-stilmerce.shThe update script:
- Backs up the current release
- Copies the new app files
- Runs any new database migrations
- Rebuilds the apps
- Restarts the PM2 processes
- Runs a health check
Your configuration files (.env, nginx config, uploads) are not overwritten.
After the Update
Verify that all services are running:
sudo pm2 ls
curl -s https://api.yourdomain.com/healthOpen the admin panel and confirm the dashboard loads without errors.
Updating Plugins
Go to Admin → Plugins. Plugins with available updates show an Update badge. Click it to update the plugin from the Stilgen store.
Or update all plugins at once:
Admin → Plugins → Update All
Rollback
If something goes wrong after an update, the update script saves the previous release to /var/www/stilmerce-backup/. To restore:
bash /var/www/stilmerce-backup/restore.shThis restores the previous app files and restarts services. It does not roll back database migrations.