From 2639ab05dd8ac1ae041d45964b1c55edbd333fa3 Mon Sep 17 00:00:00 2001 From: RKeaves Date: Mon, 28 Apr 2025 11:38:43 -0500 Subject: [PATCH] Update upating_unit3d_version.md --- upating_unit3d_version.md | 61 +++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 35 deletions(-) diff --git a/upating_unit3d_version.md b/upating_unit3d_version.md index 0d190b5..061c8df 100644 --- a/upating_unit3d_version.md +++ b/upating_unit3d_version.md @@ -127,12 +127,6 @@ cd /var/www/html php artisan git:update ``` -> [!NOTE] -> During file conflicts: -> - Backup conflicts to `~/tempBackup/fileConflicts.txt` -> - Generally recommend accepting all updates -> - After the update, it's a good idea to save any file conflicts for review - ### 4.4 Database Migration Fix During the update, you might encounter an error related to the tickets table @@ -172,40 +166,37 @@ php artisan migrate --- -## 5. Post-Update Procedures +## 5. Final Reset & Cleanup -**Final System Reset:** -```bash -sudo -u www-data composer install --prefer-dist --no-dev -o -sudo php artisan set:all_cache -bun install && bun run build -sudo systemctl restart php8.4-fpm -sudo supervisorctl reload -``` +**After updating and migrating, run the following commands to clear caches, reinstall dependencies, rebuild assets, and restart services:** -**Meilisearch Reindexing:** ```bash -sudo php artisan scout:sync-index-settings -sudo php artisan auto:sync_torrents_to_meilisearch --wipe +sudo -u www-data composer install --prefer-dist --no-dev -o && \ +sudo php artisan cache:clear && \ +sudo php artisan queue:clear && \ +sudo php artisan auto:email-blacklist-update && \ +sudo php artisan auto:cache_random_media && \ +sudo php artisan set:all_cache && \ +bun install && \ +bun run build && \ +sudo php artisan migrate && \ +sudo systemctl restart php8.4-fpm && \ +sudo php artisan queue:restart && \ +sudo supervisorctl reread && \ +sudo supervisorctl update && \ +sudo supervisorctl reload && \ +sudo php artisan scout:sync-index-settings && \ +sudo php artisan auto:sync_torrents_to_meilisearch --wipe && \ sudo php artisan auto:sync_people_to_meilisearch ``` -**Bring System Online:** +**Finally, finish the update and bring your site back online:** ```bash -php artisan up +sudo php artisan scout:sync-index-settings && \ +sudo php artisan auto:sync_torrents_to_meilisearch --wipe && \ +sudo php artisan auto:sync_people_to_meilisearch && \ +sudo php artisan set:all_cache && \ +sudo systemctl restart php8.4-fpm && \ +sudo php artisan queue:restart && \ +sudo php artisan up ``` - ---- - -## 6. Troubleshooting - -**Common Issues:** -- **Migration Errors:** Ensure database user has ALTER privileges -- **PHP Version Mismatch:** Verify `php -v` and NGINX config -- **Meilisearch Failures:** Check `/var/log/meilisearch.log` - -**Log Locations:** -```text -/var/www/html/storage/logs/laravel.log -/var/log/nginx/error.log -``` \ No newline at end of file