这是我第一次使用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
任何帮助将不胜感激。
我创建了目录,现在我们就可以开始了。