به انتشارات گیتییار بروید و باینری مناسب پلتفرم خود را دانلود کنید.
# دانلود
wget https://github.com/gityar/gityar/releases/latest/download/gityar-linux-amd64
# قابل اجرا کردن
chmod +x gityar-linux-am64
# اجرا
./gityar-linux-amd64 web
gityar-windows-amd64.exe را دانلود کنیدdocker pull gityar/gityar:latest
docker run -d \
--name gityar \
-p 3000:3000 \
-v /path/to/gityar-data:/data \
gityar/gityar:latest
فایل docker-compose.yml بسازید:
version: '3'
services:
gityar:
image: gityar/gityar:latest
container_name: gityar
ports:
- "3000:3000"
volumes:
- ./gityar-data:/data
restart: always
اجرا کنید:
docker-compose up -d
# Clone مخزن
git clone https://github.com/gityar/gityar.git
cd gityar
# ساخت
go build -o gityar ./cmd/gityar
# اجرا
./gityar web
شروع گیتییار:
./gityar web
باز کردن مرورگر: به http://localhost:3000 بروید
تکمیل wizard نصب:
شروع استفاده از گیتییار!
نیاز به پیکربندی اضافی نیست.
[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>