git.berlin/README.md

53 lines
1.0 KiB
Markdown
Raw Normal View History

2018-12-07 16:37:28 +01:00
<img src="https://git.berlin/m/git.berlin/raw/branch/master/assets/logo-gitberlin.png" height="100">
2018-12-04 02:38:55 +01:00
# git.berlin
2016-04-24 22:31:44 +02:00
2018-12-07 16:37:28 +01:00
> 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
2018-12-07 16:39:10 +01:00
- [`migrate-gitlab-gitea.sh`](migrate-gitlab-gitea.sh)
2018-12-07 16:37:28 +01:00
## Customization
2016-04-02 15:33:36 +02:00
2018-12-07 16:37:28 +01:00
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/)
2016-04-02 15:33:36 +02:00
## Handy commands
```bash
2018-12-04 02:31:39 +01:00
sudo su git
cd /home/git
2016-04-02 15:33:36 +02:00
2018-12-04 02:31:39 +01:00
vi gitea/custom/conf/app.ini
2018-12-07 19:03:39 +01:00
# Backup
# https://docs.gitea.io/en-us/backup-and-restore/
sudo su git
./gitea dump -c gitea/custom/conf/app.ini
# Restart Gitea service
2018-12-15 19:38:23 +01:00
sudo service gitea restart
2018-12-07 19:03:39 +01:00
# nginx
sudo vi /etc/nginx/sites-enabled/gitea
2018-12-15 19:38:23 +01:00
sudo service nginx restart
2016-04-02 15:33:36 +02:00
```
2018-12-07 16:37:28 +01:00
## Gitea Documentation
- [docs.gitea.io](https://docs.gitea.io/)