Updating
When a new version of WhatsMine is released, follow these steps to update safely.
Before you start
Always back up first
Back up your database and your .env file before updating. If anything goes wrong, you can restore.
php artisan db:backup
cp .env .env.backup
Update steps
Put the app in maintenance mode (optional but recommended):
php artisan downReplace the application files with the new version. Be careful not to overwrite:
- your
.envfile - your
storage/directory (uploads, logs, invoices) - any custom code you've added
If you use git,
git pullhandles this for you.- your
Update dependencies:
composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev npm ciRun new migrations:
php artisan migrate --forceRebuild the frontend:
npm run buildRefresh caches and restart workers:
php artisan config:cache php artisan route:cache php artisan view:cache php artisan event:cache php artisan queue:restartBring the app back online:
php artisan up
After updating
- Check Admin → Cron Setup that the scheduler heartbeat is still green.
- Check Admin → Queue for failed jobs.
- Do a quick smoke test: log in, open the inbox, send a message.
Translations note
If an update adds new interface text, seed any new translation keys and refresh the translation cache:
php artisan i18n:scan
New languages and edits are managed in Admin → Languages. See i18n.
Rolling back
If an update causes problems:
- Restore your previous application files.
- Restore the database backup you took.
- Run
composer installandnpm run buildfor the old version. php artisan up.