Performing tasks at startup?


I need to perform some tasks when the server starts. Currently I trigger them from environment.rb, but this means they also get run for tasks such as db migration, loading the console etc. I’d like to perform them only when the server starts, yet I can’t quite find a good place to trigger them? Apart from a custom wrapper around the server script, there doesn’t seem to be a predestined place for them.

Any tips?