Skip to content

Commit

Permalink
Merge 24f74da into c347f0e
Browse files Browse the repository at this point in the history
  • Loading branch information
hennevogel committed Feb 5, 2020
2 parents c347f0e + 24f74da commit b5fd9c0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
queue! %[wget 'http://sphinxsearch.com/files/dicts/en.pak' -O "#{deploy_to}/shared/en.pak"]
queue! %[zypper --non-interactive ar -f https://download.opensuse.org/repositories/openSUSE:/infrastructure:/hackweek/SLE_15/openSUSE:infrastructure:hackweek.repo]
queue! %[zypper --non-interactive in hackweek-service]
queue! %[systemctl enable hackweek-sphinx]
queue! %[systemctl enable hackweek]
queue! %[systemctl enable searchd]
queue! %[chown hwrun:hwrun -R "#{deploy_to}/shared"]
Expand All @@ -56,9 +57,9 @@
invoke :'rails:db_migrate'
invoke :'rails:assets_precompile'
invoke :chown
invoke :sphinx_restart

to :launch do
queue "sudo systemctl restart hackweek-sphinx"
queue "sudo systemctl restart hackweek"
queue "sudo systemctl restart apache2"
end
Expand All @@ -68,8 +69,3 @@
task :chown do
queue "cd #{deploy_to!}/#{current_path!} && chown hwrun:hwrun -R ."
end

desc "Restart Sphinx."
task :sphinx_restart do
queue "cd #{deploy_to!}/#{current_path!} && RAILS_ENV=#{rails_env} bundle exec rake ts:rebuild"
end

0 comments on commit b5fd9c0

Please sign in to comment.