Using Gogs to build git services on Windows

Source: Internet
Author: User

1. Download and install Git and, if required, restart the server for the environment variables in path to take effect. 2. Download and install Gogs, please note that when deploying in Windows, download the Miniwinservice (MWS) version. 3. Create a database named Gogs in MARIADB and assign a dedicated managed account. 4. Switch to the Extract directory in CMD and enter the Gogs.exe Web command, the enter will be able to see the prompt to run successfully, enter the browser access to the server 127.0.0.1:3000 port can be accessed. It is important to note that this step is performed in order to complete the initialization of gogs and to create a configuration file that cannot be accessed until the CMD is turned off before hosting the Gogs service to the Windows service. 5. Register Gogs as a Windows service. 5.1 First modify the Gogs configuration file, modify the Gogs directory file Gogs\custom\conf\app.ini, the Run_user = Replace the computer name, if you do not know the computer name in the cmd input echo%computername% It will return the full computer name. 5.2 Modify the [Server] configuration entry as in the following example: [Server]domain = Git.h-oa.comroot_url = http://git.h-oa.com/ Other configuration items refer to the Gogs Profile manual 5.3 to run Cmd.exe with the administrator, enter the following code to register the Windows service SC create gogs start= auto binpath= "" E:\Gogs\gogs.exe "web-- Config "E:\Gogs\conf\app.ini" "SC description gogs" An easy-to-build self-help Git service that drives code collaboration within the team. "6. Start the service, access the Gogs service website in the server browser, and configure the database, website domain name, Administrator account and other data after the completion.

Using Gogs to build a git service on Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.