StilgenStilmerce
Installation

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.sh

The update script:

  1. Backs up the current release
  2. Copies the new app files
  3. Runs any new database migrations
  4. Rebuilds the apps
  5. Restarts the PM2 processes
  6. 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/health

Open 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.sh

This restores the previous app files and restarts services. It does not roll back database migrations.

On this page