Sha256: 53ba283ad1ed1d4e99e6e80b295da94d972b5c6a72f393b2a394e3f1d0c51f0f
Contents?: true
Size: 838 Bytes
Versions: 7
Compression:
Stored size: 838 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../utilities') Capistrano::Configuration.instance(true).load do namespace :thinking_sphinx do desc 'Installs sphinx and thinking_sphinx' task :install, :roles => :app do puts 'Installing thinking_sphinx' utilities.apt_upgrade utilities.apt_install 'build-essential libmysqlclient15-dev libmysql++-dev' run "cd /tmp; #{sudo} wget http://www.sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz" run "cd /tmp; #{sudo} tar xvzf sphinx-0.9.8.1.tar.gz" run "cd /tmp/sphinx-0.9.8.1/; ./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql" run "cd /tmp/sphinx-0.9.8.1/; #{sudo} make; #{sudo} make install" sudo "gem install thinking-sphinx --source http://gemcutter.org --no-ri --no-rdoc" end end end
Version data entries
7 entries across 7 versions & 1 rubygems