Files
Obsidian-Vault/Career/Others/Deployment Hooks.md
2025-10-25 20:11:21 +02:00

51 lines
711 B
Markdown

---
created: 2025-02-24 13:13
updated: 2025-07-04 07:20
---
### Clone New Release
### Install Composer Dependencies
### NPM
```bash
cd {{ release }}
echo {{ sha }} >> commit_hash.txt
php artisan ziggy:generate
# php artisan translation:generate-vue
nice -n 19 npm ci
nice -n 19 npm run build
```
### Activate New Release
### Artisan
``` bash
cd {{ release }}
php artisan optimize:clear
php artisan horizon:terminate
php artisan migrate --force
php artisan optimize
php artisan filament:optimize
# php artisan generate:sitemap
# php artisan l5-swagger:generate
```
### Purge Old Releases
### Run Deployment Operations
```bash
cd {{ release }}
php artisan operations
```
#Laravel #Deployments