@@ -17,16 +17,20 @@ menu:
17
17
18
18
# Upgrade from an old Gitea
19
19
20
- To update Gitea, download a newer version, stop the old one, perform a backup, and run the new one.
21
- Every time a Gitea instance starts up, it checks whether a database migration should be run.
22
- If a database migration is required, Gitea will take some time to complete the upgrade and then serve.
20
+ Follow below steps to ensure a smooth upgrade to a new Gitea version.
23
21
24
22
## Check the Changelog for breaking changes
25
23
26
24
To make Gitea better, some breaking changes are unavoidable, especially for big milestone releases.
27
- Before upgrade , please read the [ Changelog on Gitea blog] ( https://blog.gitea.io / )
25
+ Before upgrading , please read the [ Changelog on Gitea blog] ( https://blog.gitea.com / )
28
26
and check whether the breaking changes affect your Gitea instance.
29
27
28
+ ## Verify there are no deprecated configuration options
29
+
30
+ New versions of Gitea often come with changed configuration syntax or options which are usually displayed for
31
+ at least one release cycle inside at the top of the Site Administration panel. If these warnings are not
32
+ resolved, Gitea may refuse to start in the following version.
33
+
30
34
## Backup for downgrade
31
35
32
36
Gitea keeps compatibility for patch versions whose first two fields are the same (` a.b.x ` -> ` a.b.y ` ),
@@ -60,6 +64,11 @@ Backup steps:
60
64
If you are using cloud services or filesystems with snapshot feature,
61
65
a snapshot for the Gitea data volume and related object storage is more convenient.
62
66
67
+ After all of steps have been prepared, download the new version, stop the application, perform a backup and
68
+ then start the new application. On each startup, Gitea verifies that the database is up to date and will automtically
69
+ perform any necessary migrations. Depending on the size of the database, this can take some additional time on the
70
+ first launch during which the application will be unavailable.
71
+
63
72
## Upgrade with Docker
64
73
65
74
* ` docker pull ` the latest Gitea release.
0 commit comments