AccuWeb.Cloud

Guaranteed 40% Cloud Savings OR Get 100% Money Back!*

Search Documentation
Type to search
AccuWeb.Cloud
Trusted by 50K+ businesses
Go Git Deploy
Post Category: Blog > Tech

Go Git Deploy

Go Git Deploy

Gogs (Go Git Service) is an open-source, self-hosted Git service that can be easily deployed and hosted on AccuWeb.Cloud PaaS. Get your GitHub-like instance with full configurability, an isolated environment, unlimited private repositories, and a minimal resource footprint.

Follow the step-by-step guide below to deploy Gogs:

Create a New Environment

  • Set up a new environment with the Golang application server and the MySQL database.
  • Configure the required resource limits for the nodes, adjust the environment name, and click Create to proceed.

Create New Environment

Access the Database

  • Once your environment is created, click the Open in Browser button next to the MySQL node to access the database admin panel.

Open in Browser

  • Use your DB credentials (sent via email) to log in.

Save $100 in the next
5:00 minutes?

Register Here

Create the Gogs Database

  • Navigate to the Databases tab and create a new gogs database, which will be used with your Git service.

Create New Gogs File

Tip: For production usage, it is recommended to create a separate database user (in the User Accounts tab) instead of using the database root account.

Deploy the Gogs Project

Adjust Default Settings

  • Adjust default settings after successful deployment.

This can be easily done via Web SSH. Run the following two commands:


mkdir -p /home/jelastic/webapp/ROOT/custom/conf
cp /home/jelastic/webapp/ROOT/conf/app.ini /home/jelastic/webapp/ROOT/custom/conf/app.ini

Adjust Default Settings

Adjust Server Settings

  • Modify the server section of your custom app.ini configuration file:
    • Set the PROTOCOL to the desired protocol (e.g., HTTP).
    • Specify the DOMAIN as your environment domain name (e.g., my-gogs.us-accuweb.cloud).
    • Update the ROOT_URL to the following format: %(PROTOCOL)s://%(DOMAIN)s/.

Adjust Server Settings

  • Ensure to save the changes after modification.

Save $100 in the next
5:00 minutes?

Register Here

Add Environment Variable

  • Add the GO_RUN_OPTIONS environment variable with the value web.
  • Restart your Golang node to apply the changes.

Environment Variable

Access Gogs Installation Page

  • Open your environment in a browser, and you will be automatically redirected to the Gogs installation page.
  • Provide the following database connection data:
    • Type, Host, User, Password, DB name (use the credentials received via email).
  • In the Application General Settings, change the Run User field value to golang.
  • Optionally, configure Admin Account Settings (the first user will be automatically granted administrator permissions).

Access Gogs Installation Page

  • Click the Install Gogs button at the bottom of the page.

Upon completion, you will be automatically logged in or redirected to the login screen, where you can sign up a new user if needed.

Gogs Login screen

That’s it! You can now start using Gogs immediately!

Feel free to explore the benefits and usability of this Go Git service within AccuWeb.Cloud PaaS.

Save $100 in the next
5:00 minutes?

Register Here
* View Product limitations and legal policies

All third-party logos and trademarks displayed on AccuWeb Cloud are the property of their respective owners and are used only for identification purposes. Their use does not imply any endorsement or affiliation.

Product limitations and legal policies

* Pricing Policy
To know about how the pricing is calculated please refer to our Terms and Conditions.