Update upating_unit3d_version.md
This commit is contained in:
parent
e4b485605d
commit
2639ab05dd
|
@ -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
|
||||
```
|
Loading…
Reference in New Issue