I have a simple question. How does a supervisord config look like to start an express app?
[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?
A typo was causing the problem
[programm:api]
is wrong. Right:
[program:api]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With