-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREVERT.txt
More file actions
74 lines (53 loc) · 3.67 KB
/
REVERT.txt
File metadata and controls
74 lines (53 loc) · 3.67 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
╔══════════════════════════════════════════════════════════════╗
║ REVERT TO PREVIOUS VERSION ║
╚══════════════════════════════════════════════════════════════╝
How to go back to a previous version of your app:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
NETLIFY:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to: https://app.netlify.com/
2. Click your site
3. Click "Deploys" tab
4. Find the version you want (older date)
5. Click the three dots (...) next to it
6. Click "Publish deploy"
7. Confirm
8. Your app reverts instantly!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
VERCEL:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to: https://vercel.com/dashboard
2. Click your project
3. Go to "Deployments" tab
4. Find the version you want
5. Click the three dots (...)
6. Click "Promote to Production"
7. Confirm
8. Done!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
GITHUB PAGES:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Go to your GitHub repository
2. Click "Actions" tab
3. Find the previous deployment
4. Or use git to revert:
git log (see history)
git checkout <commit-id> (go to that version)
git push (deploy it)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
MANUAL REVERT (Any Hosting):
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
If you saved previous 'dist' folders:
1. Find the old 'dist' folder (from backup)
2. Upload it to your hosting
3. Replace current files
4. Done!
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
💡 TIP: Always Keep Backups
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Before deploying a new version:
1. Copy the 'dist' folder
2. Rename it: dist-backup-2024-01-15
3. Keep it safe
4. If something goes wrong, you can restore it
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━