Documentation & Tutorials


How to deploy GOGS in a few clicks with InstantApps

How to deploy a Git Service with a few clicks

This tutorial shows you how to deploy your own Git Service with a few clicks.

Requirements

Gogs (Go Git Service) is a painless self-hosted Git Service written in Go. The goal of this project is to make the easiest, fastest and most painless way to set up a self-hosted Git service.

Step 1 - Deploying Gogs

Before starting, click the “Create a Server” button in the control panel.

Control Panel

You will land on the server-creation page where you can choose the Gogs image in the InstantApps tab for your Cloud Server:

Control Panel

Choose the server type and click on the Create a Server button. This action starts your server. In a few seconds, the WordPress application will be ready to use.

Step 2 - Opening the mail ports to send e-mail

To avoid spam, remote mail ports cannot be reached from our infrastructure by default. As Discourse requires to send mail, we need to open them. Your account needs to be validated to perform this operation. To get your account reviewed, please contact our assistance.

Click on the Security Groups tab to enter the security-groups page. Click the Create a new Security Group button and input the security group name and description.

Create security group

Check the Enable SMTP box to unblock the mail ports.

Configure security group

Go back to your servers details end select the security group previously created. The new Security Group configuration will be applied automatically on Virtual Cloud Servers. BareMetal cloud servers need to be hard rebooted from the management console to configure the new rules.

Step 3 - Configuring Gogs

When your server is running, you can see the server’s IP address in the server list on the control panel.

Connect to it, by using SSH, to recover the database password for Gogs. Once you are connected to your server, the following message appear on your screen:

MOTD

Save the password as you will need it in the next step.

To finish the installation of Gogs, go to http://YOUR_SERVERS_IP/ (for example: http://212.47.0.0/).

Enter this address in your favorite browser and you will land on the the Gogs Installation Assistant.

Fill in the required information for the installation of your Gogs and use the Password that you have recovered to configure the MySQL connection:

Database information

Submit the form to finish the installation of Gogs.

You can access Gogs at http://YOUR_SERVERS_IP/ now (for example: http://212.47.0.0/).

You have to create the first user for Gogs by clicking on Register:

Gogs Login

Once you have created the user, you can connect to Gogs and will see the following interface:

Gogs interface

You use Gogs now to mange your Git repositories.

To enter the advanced configuration of Gogs, click on your name, then on Admin Panel:

!Gogs menu

The Admin Panel allows you to mange your users, projects and more:

!Gogs Admin Panel

More information about the configuration of Gogs is available in the offical documentation.

If you have any suggestion or question about this tutorial, please leave a comment in our Community.

Discover a New Cloud Experience

Deploy SSD Cloud Servers in seconds.