This repository was archived by the owner on Dec 2, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
Update from-gogs.en-us.md #42
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,12 +15,37 @@ menu: | |
|
||
# Upgrade from Gogs | ||
|
||
If you are running Gogs which version is below 0.9.99, you can upgrade Gogs to Gitea smoothly. There are some steps to do below: | ||
If you are running Gogs version 0.9.113 or older, you can upgrade Gogs to Gitea smoothly. There are some steps to do below. Make sure to complete as the gitea user in ~: | ||
|
||
* Stop Gogs | ||
* Copy Gogs `custom/conf/app.ini` to Gitea. | ||
* Copy Gogs `conf/` to `options/` for Gitea. | ||
* 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. | ||
* Copy `data/` folder from Gogs to Gitea. It contains issue attachments and avatars. | ||
* Run Gitea | ||
* 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). | ||
* cd ~ | ||
* Download your platform specific binary from: https://dl.gitea.io/gitea/1.0.0/ | ||
* cp -r gogs gitea | ||
* The custom folder still applies for Gitea, just move gogs/custom/conf (not gogs/custom/conf/app.ini) to gitea/custom/options, this is used to override gitignores, labels, licenses, locales or readmes. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. data directory is needed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lunny, I had |
||
* cp -r gogs-repositories/ gitea-repositories (this preserves your data in case something goes wrong, it can be deleted once Gitea is verified working) | ||
* cp -r gogs-data/ gitea-data/ (this preserves your data in case something goes wrong, it can be deleted once Gitea is verified working) | ||
* vim gitea/custom/conf/app.ini (Change gogs specific information:) | ||
* [database] | ||
* PATH = /home/:USER/gogs/data/:DATABASE.db | ||
* [attachment] | ||
* PATH = /home/:USER/gogs-data/attachments | ||
* [picture] | ||
* AVATAR_UPLOAD_PATH = /home/:USER/gogs-data/avatars | ||
* [log] | ||
* ROOT_PATH = /home/:USER/gogs/log | ||
* | ||
* [database] | ||
* PATH = /home/:USER/gitea/data/:DATABASE.db | ||
* [attachment] | ||
* PATH = /home/:USER/gitea-data/attachments | ||
* [picture] | ||
* AVATAR_UPLOAD_PATH = /home/:USER/gitea-data/avatars | ||
* [log] | ||
* ROOT_PATH = /home/:USER/gitea/log | ||
* | ||
* Verify working by running gitea | ||
* | ||
* ~/gitea/gitea web | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Write this as a code block |
||
* 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). | ||
* | ||
* To update your startup script refer to https://github.com/go-gitea/gitea/tree/master/scripts , these files are not included with the binary on https://dl.gitea.io. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like use git user to complete it. I think We should say non-root user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, made the change to reflect non-root user, that is more logical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added recommendation from pull request #57 as I tested this and upgraded without issue to Gitea v1.0.0. Consensus seems to be this is supported.