Permalink
Browse files

Added /reindex path to do the obvious.

In case you need to ever reindex for some reason.
  • Loading branch information...
1 parent 582287b commit 61e9524426af7cb977e18df839233cfc34636496 @docwhat docwhat committed with Nov 8, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/geminabox.rb
View
@@ -45,6 +45,11 @@ def fixup_bundler_rubygems!
erb :upload
end
+ get '/reindex' do
+ reindex
+ redirect "/"
+ end
+
delete '/gems/*.gem' do
File.delete file_path if File.exists? file_path
reindex

0 comments on commit 61e9524

Please sign in to comment.