Skip to content

Commit 966ab2f

Browse files
committed
Update "Upgrade from Gogs" en-us doc
- Move "Change gogs specific information" FROM/TO steps up to just beneath matching section header, adjust indention and explicitly specify syntax of code sample to provide highlighting - Adjust header levels to match what appears to be the intended level, remove trailing decoration (see below) - Move "Upgrading to most recent ..." section down, remove decoration (section header formatting likely covers this well enough already) refs go-gitea#4286, go-gitea#3558
1 parent 9c354a5 commit 966ab2f

File tree

1 file changed

+33
-30
lines changed

1 file changed

+33
-30
lines changed

docs/content/doc/upgrade/from-gogs.en-us.md

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,50 +33,53 @@ There are some basic steps to follow. On a Linux system run as the Gogs user:
3333
* Enter Gitea admin panel on the UI, run `Rewrite '.ssh/authorized_keys' file`.
3434
* If custom or config path was changed, run `Rewrite all update hook of repositories`.
3535

36-
### Change gogs specific information:
36+
## Change gogs specific information
3737

3838
* Rename `gogs-repositories/` to `gitea-repositories/`
3939
* Rename `gogs-data/` to `gitea-data/`
4040
* In `gitea/custom/conf/app.ini` change:
4141

42-
### Upgrading to most recent `gitea` version:
42+
FROM:
43+
44+
```ini
45+
[database]
46+
PATH = /home/:USER/gogs/data/:DATABASE.db
47+
[attachment]
48+
PATH = /home/:USER/gogs-data/attachments
49+
[picture]
50+
AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars
51+
[log]
52+
ROOT_PATH = /home/:USER/gogs/log
53+
```
54+
55+
TO:
56+
57+
```ini
58+
[database]
59+
PATH = /home/:USER/gitea/data/:DATABASE.db
60+
[attachment]
61+
PATH = /home/:USER/gitea-data/attachments
62+
[picture]
63+
AVATAR_UPLOAD_PATH = /home/:USER/gitea-data/avatars
64+
[log]
65+
ROOT_PATH = /home/:USER/gitea/log
66+
```
67+
68+
* Verify by starting Gitea with `gitea web`
69+
70+
## Upgrading to most recent `gitea` version
71+
4372
After successful migration from `gogs` to `gitea 1.0.x` it is possible to upgrade to the recent `gitea` version.
4473
Simply download the file matching the destination platform from the [downloads page](https://dl.gitea.io/gitea)
4574
and replace the binary.
4675

47-
FROM:
48-
```
49-
[database]
50-
PATH = /home/:USER/gogs/data/:DATABASE.db
51-
[attachment]
52-
PATH = /home/:USER/gogs-data/attachments
53-
[picture]
54-
AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars
55-
[log]
56-
ROOT_PATH = /home/:USER/gogs/log
57-
```
58-
59-
TO:
60-
```
61-
[database]
62-
PATH = /home/:USER/gitea/data/:DATABASE.db
63-
[attachment]
64-
PATH = /home/:USER/gitea-data/attachments
65-
[picture]
66-
AVATAR_UPLOAD_PATH = /home/:USER/gitea-data/avatars
67-
[log]
68-
ROOT_PATH = /home/:USER/gitea/log
69-
```
70-
71-
* Verify by starting Gitea with `gitea web`
72-
73-
### Troubleshooting
76+
## Troubleshooting
7477

7578
* If errors are encountered relating to custom templates in the `gitea/custom/templates`
7679
folder, try moving the templates causing the errors away one by one. They may not be
7780
compatible with Gitea or an update.
7881

79-
### Add Gitea to startup on Unix
82+
## Add Gitea to startup on Unix
8083

8184
Update the appropriate file from [gitea/contrib](https://github.com/go-gitea/gitea/tree/master/contrib)
8285
with the right environment variables.

0 commit comments

Comments
 (0)