# How to run rake thinking\_sphinx:index in test environment?

**URL:** <https://www.ruby-forum.com/t/how-to-run-rake-thinking-sphinx-index-in-test-environment/174543>\
**Category:** Rails\
**Created:** [August 28, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-run-rake-thinking-sphinx-index-in-test-environment/174543 "2009-08-28T12:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nilez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@nilez](https://www.ruby-forum.com/u/nilez)\
**Post date:** [August 28, 2009, 12:42pm UTC](https://www.ruby-forum.com/t/how-to-run-rake-thinking-sphinx-index-in-test-environment/174543/1 "2009-08-28T12:42:21Z")

</div>

Hi,

I tried ‘rake thinking\_sphinx:index RAILS\_ENV=test’

but it throws following error

F:\test\_sarasaves\sarasaves\>rake thinking\_sphinx:index RAILS\_ENV=test  
(in F:/test\_sarasaves/sarasaves)  
Generating Configuration to F:/test\_sarasaves/sarasaves/config/  
test.sphinx.conf  
Sphinx 0.9.8-release (r1533)  
Copyright © 2001-2008, Andrew Aksyonoff

using config file ‘F:/test\_sarasaves/sarasaves/config/  
test.sphinx.conf’…  
FATAL: no sources found in config file.  
rake aborted!  
The following command failed:  
indexer --config F:/test\_sarasaves/sarasaves/config/test.sphinx.conf  
–all
