Is there a pm2 or forever equivalent?

polaris · · 1181 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>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&#39;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? </p> <hr/>**评论:**<br/><br/>wyattjoh: <pre><p>Been using systemd. Dead simple.</p></pre>tuxlinuxien: <pre><p>+1 systemd, using it in production and the config file format is just too damn simple to write.</p></pre>wyattjoh: <pre><p>Taking a look at some of those old init.d scripts just make me cringe.</p></pre>RevMen: <pre><p>I&#39;ve just been using upstart. Is that a bad idea?</p></pre>mcouturier: <pre><p>nope, I do that too with automatic respawns. I honestly don&#39;t see why anything else would be better.</p></pre>tamalm: <pre><p>I use fresh/docker in dev. </p> <p>In production I have used <a href="http://supervisord.org/" rel="nofollow">http://supervisord.org/</a> and Upstart. My recent projects runs on Docker only. </p></pre>cridenour: <pre><p>We use supervisord in production - we are constantly keeping two c4.2xlarge boxes at load without any problems. </p></pre>the-varlog: <pre><p><a href="https://github.com/ivpusic/rerun" rel="nofollow">https://github.com/ivpusic/rerun</a></p></pre>pwn4d: <pre><p><a href="https://github.com/pilu/fresh" rel="nofollow">https://github.com/pilu/fresh</a></p></pre>no_coats: <pre><p>this works perfectly. </p></pre>yodafinger: <pre><p><a href="https://github.com/qrtz/livedev" rel="nofollow">https://github.com/qrtz/livedev</a></p></pre>

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

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