Init
This commit is contained in:
51
Career/Others/Deployment Hooks.md
Normal file
51
Career/Others/Deployment Hooks.md
Normal file
@@ -0,0 +1,51 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user