3 ms·
I have a git repository on the server & push to that repository. On the server, I just pull, compile the binary and use upstart (service xyz restart) to restart
by patrickg 13y ago
I have a git repository on the server & push to that repository. On the server, I just pull, compile the binary and use upstart (service xyz restart) to restart the binary. Not nice, because I kill all connections. I'll switch to something more elaborate when I'll have more users on the web service.
- jessevdk 13y agoIf you're interested in zero down time for a go service, then check out goagain [1], inspired by Unicorn. It uses simple fd passing to restart itself, passing the listening socket. [1]: https://github.com/rcrowley/goagain https://github.com/rcrowley/goagain
- patrickg 13y agoThanks for the pointer! I remember seeing this, but I forgot about it. Glad to have it back.