Dedicated Server Kit Digital Ocean Setup

From gamevanilla wiki
Revision as of 09:49, 28 December 2020 by David (Talk | contribs) (Installing the required dependencies)

Jump to: navigation, search

Before proceeding

It is highly recommended that you test the kit locally on your machine first, before trying to deploy it to a remote server. It is also highly recommended that you have a basic knowledge of server administration before attempting to deploy the kit to a remote server.

Please note:

  • As a user of the kit, you are solely responsible for the administration and maintenance costs of your dedicated server. This assumes a knowledge of what a dedicated server is and how to set up one on your end. We only provide the backend code for you to build your own platform upon.
  • We do not provide support for matters not strictly related to the kit, such as writing your game's multiplayer logic or setting up/deploying the kit on your dedicated server. Your server is your responsibility, and we do not have any control nor responsibility over it.

In this section, we include a step-by-step tutorial on how to deploy the kit to a remote server on Digital Ocean. This serves two purposes: to demonstrate the kit has been successfully deployed to an actual, remote server and to serve as a helpful reference for your own deployments. There is an infinite variety of service providers available on the market and we could never possibly cover them all, but the main steps should be similar across all of them.

Creating a new droplet

After creating your account on Digital Ocean, go to the Droplets section and create a new droplet (a droplet is the term used by Digital Ocean to refer to one of their remote servers). Feel free to use the configuration most suited to your needs, but please note this tutorial assumes a Ubuntu 20.04 (LTS) x64 server.

Installing the required dependencies

Once your droplet is created, you can log into it via SSH with the following command:


Once connected to the droplet, you need to install Go and MySQL. You can install Go with the following command:

snap install go --classic

And MySQL with the following command:

sudo apt install mysql-server

We highly recommend studying the official guide on MySQL from Digital Ocean available here, as your setup can go from very simple for a quick test to more complex and secure for production purposes.

With MySQL properly configured, you can now send the database creation script and the Go server files via the following commands:

scp create_database.sql root@YOUR_IP_ADDRESS:~/create_database.sql

scp root@YOUR_IP_ADDRESS:~/