I'm currently running Apache2 with Passenger and a Rails 3.1.rc5 rails application. All is going well so far - however I have run into an issue where I need to start sunspot ("rake sunspot:solr:start RAILS_ENV=production") before I run the server (and since the server starts automagically when apache is started - I have no idea how to do this). Surely there must be some way to either:
a) Run a list of commands before the server starts b) Completely customise the start process so I have to also make it also run "rails server -e production"
Any help?