怎么用supervisord“npm开始”?

时间:2021-03-15 14:57:09

I have a simple question. How does a supervisord config look like to start an express app?

我有一个简单的问题。 supervisord配置如何启动快递应用程序?

[supervisord]
nodaemon=true

[program:sshd]
command=/usr/sbin/sshd -D

[programm:api]
directory=/var/www/my_api
command=npm start

I also tried with:

我也尝试过:

[programm:api]
command=node /var/www/my_api/app.js

However it does not start and no errors are logged. Any ideas?

但是它没有启动,也没有记录错误。有任何想法吗?

1 个解决方案

#1


5  

A typo was causing the problem

一个拼写错误导致了这个问题

[programm:api]

is wrong. Right:

是错的。对:

[program:api]

#1


5  

A typo was causing the problem

一个拼写错误导致了这个问题

[programm:api]

is wrong. Right:

是错的。对:

[program:api]