How do I prevent node.js from crashing? try-catch doesn’t work

PM2 First of all, I would highly recommend installing PM2 for Node.js. PM2 is really great at handling crash and monitoring Node apps as well as load balancing. PM2 immediately starts the Node app whenever it crashes, stops for any reason or even when server restarts. So, if someday even after managing our code, app … Read more

Ruby on Rails production log rotation

Option 1: syslog + logrotate You can configure rails, to use the systems log tools. An example in config/environments/production.rb. # Use a different logger for distributed setups config.logger = SyslogLogger.new That way, you log to syslog, and can use default logrotate tools to rotate the logs. Option 2: normal Rails logs + logrotate Another option … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)