Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (24 sloc) 0.67 kb
#!/usr/bin/env bash
#
# Sphinx
#
sphinx() {
sphinx_config_file="$current_path/config/$environment.sphinx.conf"
if [ -f $sphinx_config_file ] ; then
case "$1" in
stop) sphinx_stop ;;
start) sphinx_start ;;
index) sphinx_index ;;
restart)
sphinx_stop
sphinx_index
sphinx_start
;;
esac
else
echo "$sphinx_config_file is missing, sphinx '$1' will not be performed."
fi
}
sphinx_index() { builtin cd $current_path ; rake thinking_sphinx:index ; }
sphinx_stop() { builtin cd $current_path ; rake thinking_sphinx:stop ; }
sphinx_start() { builtin cd $current_path ; rake thinking_sphinx:start ; }
Jump to Line
Something went wrong with that request. Please try again.