Setup Gogs

How To Set Up Gogs on Ubuntu 14.04

Set Database
Gogs(Go Git Service)
https://dev.mysql.com/doc/refman/5.7/en/charset-database.html

https://github.com/gogits/gogs/blob/master/scripts/systemd/gogs.service

https://gogs.io/docs/intro/faqs

MySQL Command Line Cheatsheet

Path for older MySQL

fixed Error MySql /Mariadb error: max key length is 767 byte
v0.11.34_patch

Other solution
Upgrade mariadb version to 10.2 or higher.
Upgrade mysql version to 5.7 or higher.

Settings file Path

1
/opt/gogs/custom/conf/app.ini

Transfer repositories to Gogs

The clone bare brings down all refs/tags/etc, and the push –mirror pushes everything back up.

1
2
3
4
git clone --bare git@github.com:old/repo.git
cd repo
git remote add origin git@github.com:new/repo.git
git push --mirror

Resource

See Second Comment
Moving A Git Repository To A New Server

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You forgot to set the shortname for Disqus. Please set it in _config.yml.