When I try to index our application it fails with the following message: "undefined method `[]' for nil:NilClass". We're using the default database on Cedar.
Gemfile:
# These are the versions recommended by Heroku
gem 'thinking-sphinx', '2.0.4'
gem 'flying-sphinx', '0.5.0'
sphinx.yml:
development:
enable_star: 1
min_infix_len: 3
max_matches: 10000
production:
version: 1.10-beta
enable_star: 1
min_infix_len: 3
max_matches: 10000
Can you help me out with this problem?
- rake_fs_index_trace.txt 4.01 KB
#1 Posted by manfred on 22 Jul, 2011 01:05 PM
The problem appears to be that the DATABASE_URL environment variable isn't set on our dyno. I have also contacted Heroku support to figure out why this is the case.
#2 Posted by Pat Allan Support staff on 22 Jul, 2011 01:40 PM
Hi Manfred
Also, you'll need the latest FS gem for Cedar - best to use the git repo as your source: git://github.com/flying-sphinx/flying-sphinx.git
Give that a spin, see if it helps matters.
Pat
#3 Posted by manfred on 22 Jul, 2011 01:45 PM
Ah thanks! Maybe you could add some documentation about running on Cedar? I'm new to the platform so I didn't realize the default documentation is incorrect for Cedar.
#4 Posted by Pat Allan Support staff on 22 Jul, 2011 02:10 PM
Okay, I've updated all the documentation on flying-sphinx.com - but not the one on Heroku's site yet. It seems their admin interface for that isn't paying attention to my requests. I'll get in touch with them and get it fixed.
#5 Posted by Pat Allan Support staff on 22 Jul, 2011 02:11 PM
Also:
flying-sphinx0.5.1 has the Cedar fix - so you don't need to use the git repo as a source if you'd rather use the normal gem.#6 Posted by manfred on 22 Jul, 2011 02:16 PM
Thanks for the quick reply, that's great.
Pat Allan closed this discussion on 30 Jul, 2011 05:25 AM.