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:
|
||||
|
||||
## 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
|
||||
```
|
||||
```sh
|
||||
sudo supervisorctl reread && \
|
||||
sudo supervisorctl update && \
|
||||
sudo supervisorctl reload
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue