Run initializer code only on "rails server"

Hello,

Is there a way to run initializer code (in config/initializers) only on "rails server", and not on "rails console"?

Thank you!

Henrique