Skip to content

Commit

Permalink
added http authentication with sunspot gem for production, credential…
Browse files Browse the repository at this point in the history
…s added
  • Loading branch information
jeloi committed Feb 25, 2014
1 parent 4cbeaa0 commit 309e995
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,5 @@ end
group :production do
# gem 'pg', '0.15.1'
gem 'rails_12factor'
gem 'sunspot-rails-http-basic-auth'
end
16 changes: 8 additions & 8 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

namespace :deploy do

# desc 'Restart Unicorn'
# task :restart do
# on roles(:web) do
# puts "==== Restarting Unicorn ===="
# execute "service unicorn stop"
# execute "service unicorn restart"
# end
# end
desc 'Restart Unicorn'
task :restart do
on roles(:web) do
puts "==== Restarting Unicorn ===="
# execute "service unicorn stop"
execute "service unicorn restart"
end
end

after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
Expand Down
2 changes: 2 additions & 0 deletions config/sunspot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ production:
log_level: WARNING
path: /solr/collection1
solr_home: /usr/share/solr
user: tomcat
password: gic0vut8ep6as9gu
# read_timeout: 2
# open_timeout: 0.5

Expand Down

0 comments on commit 309e995

Please sign in to comment.