52 lines
1.0 KiB
Markdown
52 lines
1.0 KiB
Markdown
<img src="https://git.berlin/m/git.berlin/raw/branch/master/assets/logo-gitberlin.png" height="100">
|
|
|
|
# git.berlin
|
|
|
|
> Gitea installation notes [git.berlin](https://git.berlin)
|
|
|
|
- [Migration from GitLab](#migration-from-gitlab)
|
|
- [Customization](#customization)
|
|
- [Handy commands](#handy-commands)
|
|
- [Gitea Documentation](#gitea-documentation)
|
|
|
|
---
|
|
|
|
## Migration from GitLab
|
|
|
|
- [`migrate-gitlab-gitea.sh`](migrate-gitlab-gitea.sh)
|
|
|
|
## Customization
|
|
|
|
The `custom/` folder maps to `/home/git/gitea/custom/` on the server. Its contents can be deployed via rsync with:
|
|
|
|
```bash
|
|
npm i
|
|
gulp deploy
|
|
```
|
|
|
|
[Gitea Docs: Customizing Gitea](https://docs.gitea.io/en-us/customizing-gitea/)
|
|
|
|
## Handy commands
|
|
|
|
```bash
|
|
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 systemctl restart gitea.service
|
|
|
|
# nginx
|
|
sudo vi /etc/nginx/sites-enabled/gitea
|
|
```
|
|
|
|
## Gitea Documentation
|
|
|
|
- [docs.gitea.io](https://docs.gitea.io/)
|