数据库连接丢失后,如何强制node.js应用程序重新生成?
我永远用在node.js上运行我的Ghost博客平台。 据我所知,永远应该注意节点掉落并自动重启。 但是,如果我从应用程序下拉数据库,数据库再次可用时,不会像预期的那样恢复。 日志如下: r31c.log:Error: Connection lost: The server closed the connection. r31c.log:error: Forever detected script exited with code: 8 r31c.log:error: Forever restarting script for 1 time r31c.log:ERROR: connect ECONNREFUSED, sql: create table `posts` (`id` int(11) unsigned not null not null auto_increment primary key, `uuid` varchar(36) not null, `title` varchar(150) not null, `slug` varchar(150) not […]