Visit gityar releases and download the appropriate binary for your platform.
# Download
wget https://github.com/gityar/gityar/releases/latest/download/gityar-linux-amd64
# Make executable
chmod +x gityar-linux-amd64
# Run
./gityar-linux-amd64 web
gityar-windows-amd64.exedocker pull gityar/gityar:latest
docker run -d \
--name gityar \
-p 3000:3000 \
-v /path/to/gityar-data:/data \
gityar/gityar:latest
Create docker-compose.yml:
version: '3'
services:
gityar:
image: gityar/gityar:latest
container_name: gityar
ports:
- "3000:3000"
volumes:
- ./gityar-data:/data
restart: always
Run:
docker-compose up -d
# Clone repository
git clone https://github.com/gityar/gityar.git
cd gityar
# Build
go build -o gityar ./cmd/gityar
# Run
./gityar web
Start gityar:
./gityar web
Open browser: Navigate to http://localhost:3000
Complete installation wizard:
Start using gityar!
No additional configuration needed.
[database]
DB_TYPE = mysql
HOST = 127.0.0.1:3306
NAME = gityar
USER = gityar
PASSWD = password
[database]
DB_TYPE = postgres
HOST = 127.0.0.1:5432
NAME = gityar
USER = gityar
PASSWD = password
SSL_MODE = disable
server {
listen 80;
server_name gityar.example.com;
location / {
proxy_pass http://localhost:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
<VirtualHost *:80>
ServerName gityar.example.com
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>