Commit 9174358f by Carsten Brandt

fixed sphinx setup

parent 83f5f494
...@@ -2,21 +2,22 @@ ...@@ -2,21 +2,22 @@
SCRIPT=$(readlink -f "$0") SCRIPT=$(readlink -f "$0")
CWD=$(dirname "$SCRIPT") CWD=$(dirname "$SCRIPT")
sudo dpkg -l |grep sphinx # work around https://github.com/travis-ci/travis-ci/issues/2728
PATH=$PATH:/usr/local/sphinx-2.1.9/bin
# log files # log files
sudo mkdir /var/log/sphinx #sudo mkdir /var/log/sphinx
sudo touch /var/log/sphinx/searchd.log #sudo touch /var/log/sphinx/searchd.log
sudo touch /var/log/sphinx/query.log #sudo touch /var/log/sphinx/query.log
sudo chmod -R 777 /var/log/sphinx # ugly (for travis) #sudo chmod -R 777 /var/log/sphinx # ugly (for travis)
# spl dir # spl dir
sudo mkdir /var/lib/sphinx #sudo mkdir /var/lib/sphinx
sudo chmod 777 /var/lib/sphinx # ugly (for travis) #sudo chmod 777 /var/lib/sphinx # ugly (for travis)
# run dir pid # run dir pid
sudo mkdir /var/run/sphinx #sudo mkdir /var/run/sphinx
sudo chmod 777 /var/run/sphinx # ugly (for travis) #sudo chmod 777 /var/run/sphinx # ugly (for travis)
# Setup source database # Setup source database
mysql -D yiitest -u travis < $CWD/../sphinx/source.sql mysql -D yiitest -u travis < $CWD/../sphinx/source.sql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment