Answer the question
In order to leave comments, you need to log in
`
Ruby on Rails server startup problem - undefined method `formatter' for nil:NilClass (NoMethodError)?
When I try to run the server on Rails, I get the following error (I run it through rails s, but in other ways the same error):
[email protected]:~/Documents/Ruby/api_junior$ rails s
=> Booting Puma
=> Rails 6.1.3 application starting in development
=> Run `bin/rails server --help` for more startup options
Exiting
/home/authoraytee/.rbenv/versions/3.0.0/lib/ruby/gems/3.0.0/gems/railties-6.1.3/lib/rails/commands/server/server_command.rb:80:in `log_to_stdout': undefined method `formatter' for nil:NilClass (NoMethodError)
# require 'sidekiq'
# require_relative "config/environment"
# sidekiq.configure_client do |config|
# config.redis = { db: 1 }
# end
# require 'sidekiq/web'
# run Sidekiq::Web
run Rails.application
Rails.application.load_server
Answer the question
In order to leave comments, you need to log in
Without having the project code, I can not know what is the reason. I would try to create an empty application of the same name and compare it by configuration files.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question