7
我一直在使用Thin来运行我的红宝石Sinatra应用程序,但我现在正在切换到Puma。 Thin创建了我自己使用的日志log/thin.log
。我注意到Puma不会生成日志文件(不是我能看到的)。我试着围绕这个文档搜索Google,但没有发现任何东西。Puma登录到
我想知道如何/如何在Puma中指定日志路径。
任何帮助将不胜感激。
亚历
我一直在使用Thin来运行我的红宝石Sinatra应用程序,但我现在正在切换到Puma。 Thin创建了我自己使用的日志log/thin.log
。我注意到Puma不会生成日志文件(不是我能看到的)。我试着围绕这个文档搜索Google,但没有发现任何东西。Puma登录到
我想知道如何/如何在Puma中指定日志路径。
任何帮助将不胜感激。
亚历
如图所示:
# Redirect STDOUT and STDERR to files specified. The 3rd parameter
# (“append”) specifies whether the output is appended, the default is “false”.
stdout_redirect '/u/apps/lolcat/log/stdout', '/u/apps/lolcat/log/stderr'
stdout_redirect '/u/apps/lolcat/log/stdout', '/u/apps/lolcat/log/stderr', true