From ffe3c8e5545c5ed390fdba86f8137c6e76841a0e Mon Sep 17 00:00:00 2001 From: RKeaves Date: Sun, 4 May 2025 17:56:16 -0500 Subject: [PATCH] Update upating_unit3d_version.md --- upating_unit3d_version.md | 60 +++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/upating_unit3d_version.md b/upating_unit3d_version.md index 7a97f32..c5f4b63 100644 --- a/upating_unit3d_version.md +++ b/upating_unit3d_version.md @@ -2,21 +2,21 @@ Update UNIT3D to the latest version by reviewing the release notes and following the steps below: -## 1. Create Backup: +## 1. Create Backup UNIT3D offers built-in backups. Refer to the [Backups documentation](/book/src/backups.md) for usage. > [!IMPORTANT] > Ensure there is a complete backup before proceeding. -## 2. Enter Maintenance Mode: +## 2. Enter Maintenance Mode ```bash cd /var/www/html php artisan down ``` -## 3. Update UNIT3D: +## 3. Update UNIT3D > [!NOTE] > Before running the update, review the new release’s minimum requirements to ensure the environment meets them. @@ -70,50 +70,50 @@ php artisan down > yes ``` -## Troubleshooting Clean-up: +## Troubleshooting Clean-up The following commands are **optional** and should be run only as needed to resolve specific errors: - **Finish any migrations not completed:** -```bash -sudo php artisan migrate -``` + ```sh + sudo php artisan migrate + ``` - **Reinstall dependencies:** -```bash -composer install --prefer-dist --no-dev -o -``` + ```sh + composer install --prefer-dist --no-dev -o + ``` - **Clear caches:** -```bash -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 -``` + ```sh + 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 + ``` - **Rebuild static assets:** -```bash -sudo bun install && sudo bun run build -``` + ```sh + sudo bun install && sudo bun run build + ``` - **Restart services:** -```bash -sudo systemctl restart php8.4-fpm && \ -sudo php artisan queue:restart && \ -sudo php artisan up -``` + ```sh + sudo systemctl restart php8.4-fpm && \ + sudo php artisan queue:restart && \ + sudo php artisan up + ``` - **If running external UNIT3D-Announce, restart the supervisor services:** -```bash -sudo supervisorctl reread && \ -sudo supervisorctl update && \ -sudo supervisorctl reload -``` \ No newline at end of file + ```sh + sudo supervisorctl reread && \ + sudo supervisorctl update && \ + sudo supervisorctl reload + ```