【问题标题】:Starting multiple instances of Thin Server on Windows with a batch script使用批处理脚本在 Windows 上启动多个瘦服务器实例
【发布时间】:2012-04-18 14:55:00
【问题描述】:

我正在编写一个脚本来在 Windows 中自动部署一个 ruby​​ on rails 应用程序。除了瘦集群启动之外,我所有的东西都是自动化的;事实证明,Windows 不支持守护进程,因此在调用 Thin 时我无法使用 -servers 命令。

我之前发布的一个问题:Starting a Thin cluster on Windows

我现在正在寻找一种以编程方式启动三个实例的替代方法。有谁知道我如何能够做到这一点?

感谢您的宝贵时间!

【问题讨论】:

  • 你试过启动thin start 3次吗?
  • 是的;我无法从脚本中执行此操作,因为调用“thin start”会保留脚本直到进程结束,因此之后的任何内容(其他瘦启动)都几乎无法访问。

标签: ruby-on-rails ruby batch-file capistrano thin


【解决方案1】:

start是你的朋友

阅读 help start 并尝试一下

start /b thin start

再次阅读 help start 并尝试其他选项

【讨论】:

  • 你是救生员。谢谢你的 PA :)
猜你喜欢
  • 2012-09-14
  • 2017-08-07
  • 2018-12-24
  • 1970-01-01
  • 1970-01-01
  • 2015-04-25
  • 2014-04-28
  • 1970-01-01
  • 2013-10-15
相关资源
最近更新 更多