Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created June 8, 2011 03:37
Show Gist options
  • Save lucascaton/1013728 to your computer and use it in GitHub Desktop.
Save lucascaton/1013728 to your computer and use it in GitHub Desktop.
begin
Sunspot::Rails::Server.new.start
sleep 5
rescue Sunspot::Server::AlreadyRunningError
puts 'Sunspot already running...'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment