lib/softwear/lib.rb in softwear-lib-1.2.5 vs lib/softwear/lib.rb in softwear-lib-1.2.6

- old
+ new

@@ -92,11 +92,13 @@ end unless $LOAD_PATH.grep(/sunspot_solr/).empty? before :publishing, :reindex_solr do on roles(:db) do - within(release_path) do - execute :rake, 'sunspot:solr:reindex' + with rails_env: fetch(:rails_env) || fetch(:stage) do + within(release_path) do + execute :rake, 'sunspot:solr:reindex' + end end end end end