DEV Community

Discussion on: Easy Automatic Code Deployment With Git

Collapse
 
itr13 profile image
Mikael Klages

A dumb but very simple and often good enough trick I used on some server specific discord bots I used to run, was to have a command to stop the bot, and a separate python script that did git reset --hard, then pulled, before starting the bot again.

Ugly, but surprisingly durable

Collapse
 
brandonwallace profile image
brandon_wallace

Mikael, That is a great idea.