这是indexloc提供的服务,不要输入任何密码
Skip to content

poppinyunhai/daemons-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daemons Rails support (based on http://github.com/dougal/daemon_generator)
================

To get it work just add dependency to this gem in your Gemfile.

== GENERATOR ==

rails generate daemon <name>

Then insert your code in the lib/daemons/<name>.rb stub. All pids and logs will live in the normal log/ folder. This helps to make things Capistrano friendly.

== CONTROL ==

Individual control script:
> ./lib/daemons/<name>_ctl [start|stop|restart|status]
> rake daemon:<name> [start|stop|restart|status]

App-wide control script:
> ./script/daemons [start|stop|restart]
> rake daemons [start|stop|restart|status]

About

daemons gem integration into Rails 3 (based on rails_generator)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%