Update upating_unit3d_version.md
This commit is contained in:
parent
69e43f1625
commit
ffe3c8e554
|
@ -2,21 +2,21 @@
|
||||||
|
|
||||||
Update UNIT3D to the latest version by reviewing the release notes and following the steps below:
|
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.
|
UNIT3D offers built-in backups. Refer to the [Backups documentation](/book/src/backups.md) for usage.
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Ensure there is a complete backup before proceeding.
|
> Ensure there is a complete backup before proceeding.
|
||||||
|
|
||||||
## 2. Enter Maintenance Mode:
|
## 2. Enter Maintenance Mode
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd /var/www/html
|
cd /var/www/html
|
||||||
php artisan down
|
php artisan down
|
||||||
```
|
```
|
||||||
|
|
||||||
## 3. Update UNIT3D:
|
## 3. Update UNIT3D
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Before running the update, review the new release’s minimum requirements to ensure the environment meets them.
|
> 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
|
> yes
|
||||||
```
|
```
|
||||||
|
|
||||||
## Troubleshooting Clean-up:
|
## Troubleshooting Clean-up
|
||||||
|
|
||||||
The following commands are **optional** and should be run only as needed to resolve specific errors:
|
The following commands are **optional** and should be run only as needed to resolve specific errors:
|
||||||
|
|
||||||
- **Finish any migrations not completed:**
|
- **Finish any migrations not completed:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
sudo php artisan migrate
|
sudo php artisan migrate
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Reinstall dependencies:**
|
- **Reinstall dependencies:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
composer install --prefer-dist --no-dev -o
|
composer install --prefer-dist --no-dev -o
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Clear caches:**
|
- **Clear caches:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
sudo php artisan cache:clear && \
|
sudo php artisan cache:clear && \
|
||||||
sudo php artisan queue:clear && \
|
sudo php artisan queue:clear && \
|
||||||
sudo php artisan auto:email-blacklist-update && \
|
sudo php artisan auto:email-blacklist-update && \
|
||||||
sudo php artisan auto:cache_random_media && \
|
sudo php artisan auto:cache_random_media && \
|
||||||
sudo php artisan set:all_cache
|
sudo php artisan set:all_cache
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Rebuild static assets:**
|
- **Rebuild static assets:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
sudo bun install && sudo bun run build
|
sudo bun install && sudo bun run build
|
||||||
```
|
```
|
||||||
|
|
||||||
- **Restart services:**
|
- **Restart services:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
sudo systemctl restart php8.4-fpm && \
|
sudo systemctl restart php8.4-fpm && \
|
||||||
sudo php artisan queue:restart && \
|
sudo php artisan queue:restart && \
|
||||||
sudo php artisan up
|
sudo php artisan up
|
||||||
```
|
```
|
||||||
|
|
||||||
- **If running external UNIT3D-Announce, restart the supervisor services:**
|
- **If running external UNIT3D-Announce, restart the supervisor services:**
|
||||||
|
|
||||||
```bash
|
```sh
|
||||||
sudo supervisorctl reread && \
|
sudo supervisorctl reread && \
|
||||||
sudo supervisorctl update && \
|
sudo supervisorctl update && \
|
||||||
sudo supervisorctl reload
|
sudo supervisorctl reload
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue