lib/thinking_sphinx/deploy/capistrano.rb in thinking-sphinx-1.4.1 vs lib/thinking_sphinx/deploy/capistrano.rb in thinking-sphinx-1.4.2

- old
+ new

@@ -82,12 +82,13 @@ stop index start end - desc "Add the shared folder for sphinx files for the production environment" + desc "Add the shared folder for sphinx files" task :shared_sphinx_folder, :roles => :web do - run "mkdir -p #{shared_path}/db/sphinx/production" + rails_env = fetch(:rails_env, "production") + run "mkdir -p #{shared_path}/sphinx/#{rails_env}" end def rake(*tasks) rails_env = fetch(:rails_env, "production") rake = fetch(:rake, "rake")