Guest User

Untitled

a guest
Jun 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. task :after_deploy, :roles => :app do
  2. run "#{current_path}/rake thinking_sphinx:start"
  3. end
  4.  
  5. Rake::Task['thinking_sphinx:start'].invoke
  6.  
  7. if app_not_already_running
  8. IO.popen("start app") do |fd|
  9. end
  10. end
  11.  
  12. require 'rake'
  13. require 'rake/testtask'
  14. require 'rake/rdoctask'
  15. require 'tasks/rails'
  16. require "#{RAILS_ROOT}/vendor/plugins/thinking-sphinx/tasks/thinking_sphinx_tasks"
  17. Rake::Task['thinking_sphinx:start'].invoke
  18.  
  19. Kernel.system("/usr/local/sphinx/bin/searchd --pidfile --config [full-path-to-your-app]/config/#{RAILS_ENV}.sphinx.config")
Add Comment
Please, Sign In to add comment