I have some initialization code in Ruby that initializes a Redis database with some values. Where is the best place to put this code in the Rails application? I wa开发者_如何学Cnt this code to run right after everything is deployed. I'm using Passenger if that helps.
Code that loads stuff once per app load (initializers) belongs in $RAILS_ROOT/config/initializers
精彩评论