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

Update from-gogs.en-us.md #42

Closed
wants to merge 2 commits into from
Closed

Update from-gogs.en-us.md #42

wants to merge 2 commits into from

Conversation

termlimit
Copy link
Contributor

Updated upgrade from gogs instructions. This is for binary, however should work for others as well.

Copy link
Member

@tboerger tboerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added various comments, the same comments apply to the master branch.

* cd ~
* wget https://github.com/go-gitea/gitea/archive/v1.0.0.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use https://dl.gitea.io as source

* unzip v1.0.0.zip
* cp -r gogs gitea
* If you have custom content migrated from gogs/custom/ folder, like templates or localization files, you should manually merge these because these files changed on Gitea.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

* cd ~
* wget https://github.com/go-gitea/gitea/archive/v1.0.0.zip
* unzip v1.0.0.zip
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required for the binary from https://dl.gitea.io

* cp -r gogs gitea
* If you have custom content migrated from gogs/custom/ folder, like templates or localization files, you should manually merge these because these files changed on Gitea.
* cp -r gitea-v1.0.0/options gitea/options
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not required for the binary from https://dl.gitea.io

Change gogs specific information:

FROM:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't format well. Just provide 2 code blocks.

Verify working by running gitea

* ~/gitea/gitea web
Copy link
Member

Choose a reason for hiding this comment

The 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).

Update the gitea-v1.0.0/scripts file for your specific distro and environment then copy.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just refer to https://github.com/go-gitea/gitea/tree/master/scripts because these files are not part of the file on https://dl.gitea.io.

@tboerger tboerger added this to the 1.1 milestone Dec 29, 2016
@tboerger tboerger modified the milestones: 1.0, 1.1 Dec 29, 2016
@Bwko Bwko mentioned this pull request Jan 7, 2017
@termlimit
Copy link
Contributor Author

Made the changes requested by tboerger, apologies again for the lengthy delay.

@lunny
Copy link
Member

lunny commented Jan 8, 2017

conflict

@bkcsoft
Copy link
Member

bkcsoft commented Jan 9, 2017

Depricated in favour of #61 ?

@termlimit
Copy link
Contributor Author

termlimit commented Jan 10, 2017 via email

@@ -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 ~:
Copy link
Member

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

* 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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data directory is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lunny, I had cp -r gogs gitea that should copy the data/ folder from gogs to gitea. Do you want me to break that out as a separate line?

@lunny
Copy link
Member

lunny commented Jan 10, 2017

seems conflict with #61

@termlimit
Copy link
Contributor Author

Looks like #61 has been merged, o well I will try again in the future. Thanks for helping guys!

@tboerger
Copy link
Member

#61 have been merged to master, this PR targets the release/v1.0 branch. These branches should be properly in sync.

@termlimit
Copy link
Contributor Author

#68 was merged into v1.0 is this dead, should I close?

@lunny
Copy link
Member

lunny commented Jan 13, 2017

Please close this one. @termlimit Thanks!

@termlimit
Copy link
Contributor Author

No problem on the close. Good call, between this being first contribution as well as my move and work. Just was unable to provide a resolution in a timely manner. I did learn a lot and I appreciate all the feedback.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants