You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lukeredpath edited this page Sep 12, 2010
·
3 revisions
An easy way to take the effort out of managing your background worker process is to write a simple wrapper script using the daemons gem. This allows you to do things such as script/worker (start|stop|run|restart) and throws PID management into the mix as well, making it easy to deploy and restart using capistrano.
An example script can be found in the gist below. Simply paste it into a new file in your application’s script folder and give it executable permissions.