Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Commit 5ecdd98

Browse files
committed
Updated migration guide
1 parent 1428cc0 commit 5ecdd98

File tree

1 file changed

+60
-9
lines changed

1 file changed

+60
-9
lines changed

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

Lines changed: 60 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,66 @@ menu:
1515

1616
# Upgrade from Gogs
1717

18-
Gogs versions up to 0.9.97 can be smootlhy upgraded to Gitea.
18+
Gogs versions up to 0.9.115 can be smootlhy upgraded to Gitea.
1919

20-
There are some steps to do so below.
21-
Make sure to complete them as the gitea user in ~:
20+
There are some steps to do so below. On Unix run as your Gogs user:
2221

23-
* Stop Gogs
24-
* Copy Gogs `custom/conf/app.ini` to Gitea.
25-
* Copy Gogs `conf/` to `options/` for Gitea.
26-
* If you have more custom content on `custom/` folder, like templates or localization files, you should carrefully merge manually because these files changed on Gitea.
27-
* Copy `data/` folder from Gogs to Gitea. It contains issue attachments and avatars.
28-
* Run Gitea
22+
* Create a Gogs backup with `gogs dump`. This creates `gogs-dump-[timestamp].zip` file containing all your Gogs data.
23+
* Download the file matching your platform from the [downloads page](https://dl.gitea.io/gitea)
24+
* Put the binary at the desired install location
25+
* Copy `gogs/custom/conf/app.ini` to `gitea/custom/conf/app.ini`
26+
* If you have custom `templates, public` in `gogs/custom/` copy them to `gitea/custom/`.
27+
[Due to a bug](https://github.com/go-gitea/gitea/issues/529) custom templates aren't working at the moment.
28+
* If you have any other custom folders like `gitignore, label, license, locale, readme` in `gogs/custom/conf` copy them to `gitea/custom/options`.
29+
* Copy `gogs/data/` to `gitea/data/`. It contains issue attachments and avatars.
30+
* Verify by starting Gitea with `gitea web`
2931
* Enter Gitea admin panel on the UI, run `Rewrite '.ssh/authorized_keys' file` (caution: non-Gitea keys will be lost) and `Rewrite all update hook of repositories` (needed when custom config path is changed).
32+
33+
34+
### Change gogs specific information:
35+
36+
* Rename `gogs-repositories/` to `gitea-repositories/`
37+
* Rename `gogs-data/` to `gitea-data/`
38+
* In your `gitea/custom/conf/app.ini` change:
39+
40+
FROM:
41+
```
42+
[database]
43+
PATH = /home/:USER/gogs/data/:DATABASE.db
44+
[attachment]
45+
PATH = /home/:USER/gogs-data/attachments
46+
[picture]
47+
AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars
48+
[log]
49+
ROOT_PATH = /home/:USER/gogs/log
50+
```
51+
52+
TO:
53+
```
54+
[database]
55+
PATH = /home/:USER/gitea/data/:DATABASE.db
56+
[attachment]
57+
PATH = /home/:USER/gitea-data/attachments
58+
[picture]
59+
AVATAR_UPLOAD_PATH = /home/:USER/gitea-data/avatars
60+
[log]
61+
ROOT_PATH = /home/:USER/gitea/log
62+
```
63+
64+
* Verify by starting Gitea with `gitea web`
65+
66+
67+
### Add Gitea to startup on Unix
68+
Update the appropriate file from [gitea/scripts](https://github.com/go-gitea/gitea/tree/master/scripts) with the right environment variables.
69+
70+
For distro's with systemd:
71+
72+
* Copy the updated script to `/etc/systemd/system/gitea.service`
73+
* Add the service to the startup with: `sudo systemctl enable gitea`
74+
* Disable old gogs startup script: `sudo systemctl disable gogs`
75+
76+
For distro's with SysVinit:
77+
78+
* Copy the updated script to `/etc/init.d/gitea`
79+
* Add the service to the startup with: `sudo rc-update add gitea`
80+
* Disable old gogs startup script: `sudo rc-update del gogs`

0 commit comments

Comments
 (0)