主管错误:“program:TextAlertServer”部分中不存在名为 /not/real/path/ 路径一部分的目录

问题描述 投票:0回答:1

这是我第一次使用supervisor。在我的supervisord.conf文件中,我有一个与错误匹配的stdout_logfile路径,所以我不明白为什么它给我这个错误:

错误:作为路径一部分命名的目录 /usr/local/var/log/supervisor/TextAlertServer-stdout.log 没有 存在于“程序:TextAlertServer”部分(文件: '/usr/local/etc/supervisord.conf')

这是我的程序的supervisord.conf 文件中的内容:

[program:TextAlertServer]
command=sudo swift run App serve --port=8080
directory=/var/www/TextAlertServer
autostart=true
autorestart=true
user=Andrew
stdout_logfile=/usr/local/var/log/supervisor/TextAlertServer-stdout.log
stderr_logfile=/usr/local/var/log/supervisor/TextAlertServer-stderr.log

任何帮助将不胜感激。

server supervisord
1个回答
0
投票

我创建了目录,现在我们就可以开始了。

© www.soinside.com 2019 - 2024. All rights reserved.