Answer the question
In order to leave comments, you need to log in
How to deploy telegram bot on VPS?
I have a telegram bot written in python. I need to upload it to the hosting, I can’t decide which is better to choose. I would like to run it on a Windows server, so that it can be periodically controlled through the UI and not the console.
I would like to know your opinion where is it better on a Windows server or still on Linux.
PS VPS I take on reg.ru
Answer the question
In order to leave comments, you need to log in
Running on Windows is bullshit.
If you plan to keep only a bot on the VPS, then it is better to issue it as a package. Set up CI \ CD and it will be deployed on your server with each release in the version control system.
Personally, I deploy a bot in docker, because a bot usually needs a database, some applications nearby ... Installing and configuring everything is a separate story, and after a couple of years of uninterrupted work, you or your customer may have to move to another hosting or reinstall and set everything up again, but everything has already faded from memory. Saves the description of the entire configuration in the form of docker-compose.
Then moving to a new server is generally trivial. It is also easy to raise a test clone of the bot on a local machine for debugging and it will work in the same environment and with the same configuration as on the server.
This is especially convenient if you have to use some graphics or sound converters.
If you need to raise two jobs on different frameworks or with different dependencies, then dockerization also saves you from having to mess with venv. And there are also dependencies for third-party external utilities.
it’s better to run on a linux server))
wrap the bot in systemd more reliably, run it as a service,
you need a GUI - install lxde for example and connect via vnc))
well, if you don’t mind the money, then you can also
use reg ru on Windows - there are cheaper, not less high-quality VPS, in the same place, in theory, a lot of RAM is inappropriate ... and the disk too ... although of course it depends on the bot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question