the context is a discord bot written in python with some hot-reload functionality so i don't have to ssh in to stop and restart the bot whenever i make changes. this way when i push an update all i have to do is send the bot a reload command
... but i imagine you could put more things in that hook to make it e.g. compile and/or (re)start a service automatically
...... but really, at that point you should be using a proper pipeline, maybe with CI and testing
caveat programmor
if you're curious, this is what i put in the post-update hook:
cd ..
env -i git reset --hard
@typhlosion just once I want to see a real-life cemetery with a horror game layout, all twisting passages and interior fences. Sparse gravestones and they all have riddles on them
kasran, typhlosion taur plushy, approximate girlthing
28, it/they/she/typh
settler on Massachusett land
your mutual's mutual
code, games, music
https://www.patreon.com/kasran
en-US
jbo (ca'o cilre)
fr (j'apprends)
eo (mi lernas)
ja (🔰)
follow requests accepted! do keep in mind this is an 18+ account (with cws)
icon by my friend poketto
header by bloodsbane: http://bloodsbane.tumblr.com/post/168938806924/