升级MacOS 13 Ventura后Puma Rails服务器无法以守护进程模式启动
Rails后台启动失败问题
系统从MacOS 12.x升级到13.0.1后,出现如下异常:
正常启动(前台模式)
执行命令 rails s 时,Rails应用可正常启动,完整输出如下:
=> Booting Puma => Rails 5.2.8.1 application starting in development => Run `rails server -h` for more startup options Puma starting in single mode... * Version 3.12.6 (ruby 2.6.6-p146), codename: Llamas in Pajamas * Min threads: 5, max threads: 5 * Environment: development * Listening on tcp://localhost:3000 Use Ctrl-C to stop
后台启动失败(-d 参数)
执行命令 rails s -d 尝试后台启动时,输出仅停留在以下内容,无后续Puma启动日志,服务器并未实际运行:
=> Booting Puma => Rails 5.2.8.1 application starting in development => Run `rails server -h` for more startup options
进程验证结果
执行进程检测命令,未发现任何Puma或Rails相关进程:
ps -ef | grep puma 501 69877 51917 0 6:45 ttys000 0:00.00 grep puma
ps -ef | grep rails 501 72493 51917 0 6:49 ttys000 0:00.00 grep rails
内容的提问来源于stack exchange,提问作者Christian Meichtry
相关产品推荐
相关产品推荐

