Some automated way to deploy the code to the VPS with travis should be used in order to keep stuff automated.
A script on the server side should be called to automatically switch user, git pull and systemctl restart bot.
I would need to implement a way to drain the bot, so that playing users are not kicked out of their current game, but instead get noticed, that the bot is going down for maintenance.
Some automated way to deploy the code to the VPS with travis should be used in order to keep stuff automated.
A script on the server side should be called to automatically switch user,
git pull
andsystemctl restart bot
.I would need to implement a way to drain the bot, so that playing users are not kicked out of their current game, but instead get noticed, that the bot is going down for maintenance.
https://gist.github.com/jesgs/7815f791c98ea2f3e82c51f5c66b6ce1