I have about 5 small APIs written in Go that sit behind an NGINX proxy inside of a Vagrant box. Works nicely for local development, but I'd like to make it a little easier on us. Is there any way to watch the files in these directories and restart them on a file change while running them as daemons?
评论:
wyattjoh:
tuxlinuxien:Been using systemd. Dead simple.
wyattjoh:+1 systemd, using it in production and the config file format is just too damn simple to write.
RevMen:Taking a look at some of those old init.d scripts just make me cringe.
mcouturier:I've just been using upstart. Is that a bad idea?
tamalm:nope, I do that too with automatic respawns. I honestly don't see why anything else would be better.
cridenour:I use fresh/docker in dev.
In production I have used http://supervisord.org/ and Upstart. My recent projects runs on Docker only.
the-varlog:We use supervisord in production - we are constantly keeping two c4.2xlarge boxes at load without any problems.
pwn4d:
no_coats:
yodafinger:this works perfectly.
