Gitea installation tools & notes https://git.berlin
Go to file
Matthias Kretschmann fa6c3b8bb2
document update script
2018-12-15 19:58:02 +01:00
assets docs update 2018-12-07 16:37:28 +01:00
bin document update script 2018-12-15 19:58:02 +01:00
custom add favicon 2018-12-15 19:36:54 +01:00
.gitignore gitea files deployment 2018-12-07 16:21:13 +01:00
README.md document update script 2018-12-15 19:58:02 +01:00
gulpfile.js gitea files deployment 2018-12-07 16:21:13 +01:00
package.json docs update 2018-12-07 16:37:28 +01:00

README.md

git.berlin

Gitea installation notes git.berlin


Migration from GitLab

Update Gitea

Update script sets options by default, can be changed at top of script:

  • giteaBinary: Gitea binary under /home/git/gitea/gitea
  • arch: architecture is linux-amd64
  • giteaUpdateStorage: downloaded files will be stored in /home/git/gitea-update
  • giteaUser: linux user Gitea is running under, git
  • giteaGroup: linux group Gitea is running under, git
# run update script with sudo, passing version number as option
sudo ./bin/update-gitea.sh 1.6.1

Customization

The custom/ folder maps to /home/git/gitea/custom/ on the server. Its contents can be deployed via rsync with:

npm i
gulp deploy

Gitea Docs: Customizing Gitea

Handy commands

sudo su git
cd /home/git

vi gitea/custom/conf/app.ini

# Backup
# https://docs.gitea.io/en-us/backup-and-restore/
sudo su git
./gitea dump -c gitea/custom/conf/app.ini

# Restart Gitea service
sudo service gitea restart

# nginx
sudo vi /etc/nginx/sites-enabled/gitea
sudo service nginx restart

Gitea Documentation