Deploy on Windows
This tutorial will have you deploying discordgsm on Windows OS.
Before deployment, you need to prepare the following items.
- Python 3.8+
- Git (https://gitforwindows.org/)
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.
mkdir DiscordGSM & cd DiscordGSM
2. Clone the repository
Clone GameServerMonitor repository by the following command.
cd GameServerMonitor
git checkout tags/$(git describe --tags)
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.
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.
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.
venv\Scripts\activate.bat
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.