My application crashes when a customer places an order.
I really get desperation, as I need mine production.log
to find out what the application breaks!
I went to :~/mystore/current/log$ nano production.log
And it looks like it has production.log
not been updated since 23/5 2017.
Here are the last lines from production.log
I, [2017-05-23T11:12:35.067624
F, [2017-05-23T11:12:35.069957
ActiveRecord::RecordNotFound (Couldn't find Label with 'id'=10):
app/controllers/labels_controller.rb:21:in `set_label'
Now I don’t understand why my application crashes today. Which is strange, because I could always control performance withproduction.log
these are settings in production.rb
config.log_level = :info
config.logger = ActiveSupport::Logger.new('/tmp/foo.log')
config.logger.info "SMTP_ADDR: #{ENV["SMTP_ADDRESS"].inspect}"
config.log_formatter = ::Logger::Formatter.new
In deploy.rb
sim-linking, I don’t know if this has anything to do with this.
set :linked_files, %w{config/database.yml config/secrets.yml config/application.yml}
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
The application runs on Nginx
and deploys through Capistrano
Has anyone had this problem? Can anybody help me?
, , : , " "?