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 want this code to run right after everything is deployed. I’m using Passenger if that helps.
I have some initialization code in Ruby that initializes a Redis database with some
Share
Code that loads stuff once per app load (initializers) belongs in
$RAILS_ROOT/config/initializers