Tag: 守护进程

自定义守护进程与Rails 3

我正在尝试创建一个加载Rails环境的自定义守护程序。 我的环境如下:ruby-1.9.2-p180 rails 3.0.5 我做了以下事情: – 安装守护进程gem – 安装在这里的daemon_generator插件: https : //github.com/dougal/daemon_generator -Generated守护进程:rails生成守护进程监听器 这一切都很好。 当我运行守护进程时,它可以工作。 但是,只要我尝试访问活动记录对象(例如尝试检索用户),它就会爆炸。 *** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally *** # *** below you find all exception objects found in memory, some of them […]

使Ruby程序成为一个守护进程?

我想写一个Ruby程序,它总是在我的Mac上运行在后台(一个守护进程)。 有人能指出我如何做到这一点的正确方向?