Gitea 1.5.0已经发布下载,下面我们也将安装 Gitea 1.5.0 这款易用的自助Git服务。它支持 Linux、macOS、Windows 及各种架构,支持 x86、amd64,还包括 ARM 和 PowerPC。Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。项目采用 Go 作为后端语言,只要生成一个可执行程序即可。
Gitea 1.5.0主要改进和修复: Add cli commands to regen hooks & keys Add support for FIDO U2F Added user language setting LDAP Public SSH Keys synchronization Add topic support Multiple assignees Add protected branch whitelists for merging Global code search support Add label descriptions Add issue search via API Add repository setting to enable/disable health checks Emoji Autocomplete Implements generator cli for secrets
安装方法 1.二进制安装 所有下载均包括 SQLite, MySQL 和 PostgreSQL 的支持,同时所有资源均已嵌入到可执行程序中,这一点和老版本有所不同。基于二进制的安装非常简单,只要下载对应平台,复制下载URL,执行以下命令即可(以Linux为例): wget -O gitea https://github.com/go-gitea/gitea/releases/download/v1.5.0/gitea-1.5.0-linux-amd64 chmod +x gitea 2.测试 在执行了以上步骤之后,你将会获得 gitea 的二进制文件,在你复制到部署的机器之前可以先测试一下。在命令行执行完后,你可以 Ctrl + C 关掉程序。 ./gitea web
附:Run as service in Ubuntu 16.04 LTS 1.Using systemd Run the below command in a terminal: sudo vim /etc/systemd/system/gitea.service Uncomment any service that needs to be enabled on this host, such as MySQL. Change the user, home directory, and other required startup values. Change the PORT or remove the -p flag if default port is used. Enable and start gitea at boot: sudo systemctl enable gitea sudo systemctl start gitea 2.Using supervisor Install supervisor by running below command in terminal: sudo apt install supervisor Create a log dir for the supervisor logs: # assuming gitea is installed in /home/git/gitea/ mkdir /home/git/gitea/log/supervisor Open supervisor config file in a file editor: sudo vim /etc/supervisor/supervisord.conf Change the user(git) and home(/home/git) settings to match the deployment environment. Change the PORT or remove the -p flag if default port is used. Lastly enable and start supervisor at boot: sudo systemctl enable supervisor sudo systemctl start supervisor
相关主题 |