-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
37 lines (28 loc) · 774 Bytes
/
Copy pathdeploy.sh
File metadata and controls
37 lines (28 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# ============================================
# WP Manager — Production Deploy Script
# ============================================
set -e
echo "🚀 Deploying WP Manager..."
# 1. Maintenance mode
php artisan down --retry=60
# 2. Dependencies
composer install --no-dev --optimize-autoloader --no-interaction
npm ci --production
npm run build
# 3. Database
php artisan migrate --force
# 4. Cache for performance
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan event:cache
# 5. Storage
php artisan storage:link 2>/dev/null || true
# 6. Clear old caches
php artisan cache:clear
# 7. Up
php artisan up
echo "✅ Deploy complete!"
echo " - curl https://your-domain.com/up"
echo " - tail -f storage/logs/laravel.log"