On 22 July 2015 at 17:52, agusddt <agus...@gmail.com> wrote: > Fred, thanks for your answer. > The thing is that I cannot run "rails server"on localhost, it terminates > immediately.
You have not said what is in config/initializers/sunspot_configuration.rb:52 as suggested by Fred Colin > > El miércoles, 22 de julio de 2015, 13:20:04 (UTC-3), Frederick Cheung > escribió: >> >> >> >> On Wednesday, July 22, 2015 at 5:17:29 PM UTC+1, agusddt wrote: >>> >>> I was uploading my app to a server, put it in production mode on the >>> server, still on development mode locally and suddenly I cannot run "rails >>> server" anymores since it dies automatically with this error: >>> >>> >>> /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:52:in >>> `block in <top (required)>': undefined method `gsub' for nil:NilClass >>> (NoMethodError) >>> >>> from >>> /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:45:in >>> `each' >>> >>> from >>> /Users/agusddt/developments/crm/config/initializers/sunspot_configuration.rb:45:in >>> `<top (required)>' >> >> >> [snip] >>> >>> >>> Taking a look into the logs appears just a warning: >>> >>> DEPRECATION WARNING: Currently, Active Record suppresses errors raised >>> within `after_rollback`/`after_commit` callbacks and only print them to the >>> logs. In the next version, these errors will no longer be suppressed. >>> Instead, the errors will propagate normally just like in other Active Record >>> callbacks. >>> >>> >>> >> I doubt this warning is relevant - the probably is almost certainly in >> config/initializers/sunspot_configuration.rb:52 >> >> Fred > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/62f3862d-460f-4b4c-a7b7-a31e4b887935%40googlegroups.com. > > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuEvpRF9_XO%2BDbB9gw6Fg7TCstrPVUvhR_DZwpXy6EVow%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.