Gogs install

Installation von Gogs auf Debian

Kommentieren Feb 05 2018 .txt, .json, .md

Nach einer Weile mit Gitbalb CE wurde es zeit für was Neues. Gogs

Gogs has low minimal requirements and can run on an inexpensive Raspberry Pi. Some users even run Gogs instances on their NAS devices.

Die Installation ist gut dokumentiert. Hier aber meine Schritte als Hilfe:

apt-get install postgresql postgresql-client libpq-dev
sudo -u postgres psql -d template1
CREATE USER gogs CREATEDB;
\password gogs
CREATE DATABASE gogs OWNER gogs;
\q
apt-get install git
adduser --disabled-login --gecos 'Gogs' git
su git
cd
wget https://cdn.gogs.io/0.11.34/linux_amd64.tar.gz
tar -xvzf linux_amd64.tar.gz
cd gogs
cp /home/git/gogs/scripts/systemd/gogs.service /etc/systemd/system/
chmod +x /etc/systemd/system/gogs.service
service gogs start
http://localhost:3000

Done.