Is there a pm2 or forever equivalent?

polaris · 2016-06-24 22:00:11 · 1358 次点击    
这是一个分享于 2016-06-24 22:00:11 的资源,其中的信息可能已经有所发展或是发生改变。

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:

Been using systemd. Dead simple.

tuxlinuxien:

+1 systemd, using it in production and the config file format is just too damn simple to write.

wyattjoh:

Taking a look at some of those old init.d scripts just make me cringe.

RevMen:

I've just been using upstart. Is that a bad idea?

mcouturier:

nope, I do that too with automatic respawns. I honestly don't see why anything else would be better.

tamalm:

I use fresh/docker in dev.

In production I have used http://supervisord.org/ and Upstart. My recent projects runs on Docker only.

cridenour:

We use supervisord in production - we are constantly keeping two c4.2xlarge boxes at load without any problems.

the-varlog:

https://github.com/ivpusic/rerun

pwn4d:

https://github.com/pilu/fresh

no_coats:

this works perfectly.

yodafinger:

https://github.com/qrtz/livedev


入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1358 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传