Skip to content

Commit

Permalink
Added /reindex path to do the obvious.
Browse files Browse the repository at this point in the history
In case you need to ever reindex for some reason.
  • Loading branch information
docwhat authored and tomlea committed Nov 17, 2011
1 parent 582287b commit 61e9524
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/geminabox.rb
Expand Up @@ -45,6 +45,11 @@ def fixup_bundler_rubygems!
erb :upload erb :upload
end end


get '/reindex' do
reindex
redirect "/"
end

delete '/gems/*.gem' do delete '/gems/*.gem' do
File.delete file_path if File.exists? file_path File.delete file_path if File.exists? file_path
reindex reindex
Expand Down

0 comments on commit 61e9524

Please sign in to comment.