In Rails 4.2, is there a place where I can put code that I want to be called immediately after the rails server starts up (as opposed to when an HTTP request comes in). In other words, I want my code executed right after I do a "rails server" command or a "heroku restart."

As one simple example, suppose I wanted to maintain an item in the database that would simply count system reloads. Where would that code go?

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/1445010381.5978.1%40Vector.
For more options, visit https://groups.google.com/d/optout.

Reply via email to