How to restart Rails from within Rails?

后端 未结 3 1607
轻奢々
轻奢々 2021-02-09 13:53

Ok, so I would like to create an action in Rails to restart itself. I did a little searching and found:

http://snippets.dzone.com/posts/show/5002

Which suggests

3条回答
  •  深忆病人
    2021-02-09 14:37

    In our consulting with startups running their sites on Rails, we used two methods for managing mongrel processes.

    First, is a custom gem we wrote called mongrel_runit. This sets mongrels up as services in runit.

    Second, we used god to monitor mongrel processes. This will work with mongrel_runit, or with 'normal' mongrel configurations.

提交回复
热议问题