title: Determine if using Rails console or server when using Spring
body: <p>Is it possible to determine if you are in the context of a running Rails server or console in an initializer when Spring is used? I've seen <a href="https://stackoverflow.com/questions/13506690/how-to-determine-if-rails-is-running-from-cli-console-or-as-server">similar questions</a> that don't take Spring into account.</p>