Deploy on Windows

This tutorial will have you deploying discordgsm on Windows OS.

Requirements

Before deployment, you need to prepare the following items.

Get Started

This tutorial will have you deploying discordgsm on Windows OS.

1. Create a new directory

The following commands will change directory to Documents and creates a folder call DiscordGSM.

2. Clone the repository

Clone GameServerMonitor repository by the following command.

or download manually: Here

3. Create a Virtual Python Environment

The following commands will create a new virtual environment.

4. Activate the Environment

Now that we have a virtual environment, we need to activate it.

After you activate the environment, your command prompt will be modified to reflect the change.

5. Install Python dependencies and packages

The following commands will download the necessary dependencies and packages.

6. Configure the environment variables

Copy .env.example to .env

Edit .env with your favourite editor. Learn more: Guide: Environment Variables

7. Add the bot to your server

The following commands will start the discord bot.

View the console output and click the bot invite link to add the bot to your server.

8. Congratulations! 🎉

DiscordGSM has deployed. If you wish to install discordgsm as Windows Service, please continue.

Create a Windows Service

This tutorial will have you deploying discordgsm on Windows OS.

1. Run the cmd.exe as an Administrator

Run the cmd.exe as an Administrator, and change to the GameServerMonitor directory.

2. Activate the Environment

The following commands will activate the virtual environment.

3. Install the service

The following commands will install the service.

4. Start the service

The following commands will start the service.

5. Congratulations! 🎉

DiscordGSM has deployed as Windows Service.

Update

This tutorial will update the application to the latest release version.

1. Activate the Environment

The following commands will change the directory to GameServerMonitor and activate the environment.

2. Pull the repository

The following commands will pull the latest version.

3. Install Python dependencies and packages

The following commands will download and update the necessary dependencies and packages.

4. Restart the service (Optional)

The following commands will restart the service. Run this if you had created as Windows Service.

5. Congratulations! 🎉

DiscordGSM has updated.

Got any questions or feedback? Join our Discord Server.