Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task :after_deploy, :roles => :app do
- run "#{current_path}/rake thinking_sphinx:start"
- end
- Rake::Task['thinking_sphinx:start'].invoke
- if app_not_already_running
- IO.popen("start app") do |fd|
- end
- end
- require 'rake'
- require 'rake/testtask'
- require 'rake/rdoctask'
- require 'tasks/rails'
- require "#{RAILS_ROOT}/vendor/plugins/thinking-sphinx/tasks/thinking_sphinx_tasks"
- Rake::Task['thinking_sphinx:start'].invoke
- 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