Error :- sudo: RAILS_ENV=production: command not found
or using without using sudo its giving
Route segment ":controller" cannot be optional because it precedes a required segment. This segment will be required. Route segment ":controller" cannot be optional because it precedes a required segment. This segment will be required. ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47: ./script/../config/../vendor/plugins/acts_as_ferret/lib/ferret_server.rb:19:in `read': No such file or directory - script/../config/../config/ferret_server.yml (Errno::ENOENT) from ./script/../config/../vendor/plugins/acts_as_ferret/lib/ferret_server.rb:19:in `load' from ./script/../config/../vendor/plugins/acts_as_ferret/lib/ferret_server.rb:44:in `start' from ./lib/daemons/ferret_server:15 from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:488:in `load' from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:488:in `load' from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in' from ./script/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:488:in `load' from (eval):1 from ./script/runner:3:in `eval' from ./script/../config/../vendor/rails/railties/lib/commands/runner.rb:47 from ./script/runner:3:in `require' from ./script/runner:3
RAILS_ENV=production is a bash-ism, so replace it with whatever your root shell requires to set the RAILS_ENV environment variable to production.
Copy config/ferret_server.yml-example (from latest darcs version) to config/ferret_server.yml to fix the non-sudo version. There's also a copy in vendor/plugins/acts_as_ferret/config/ferret_server.yml